diff options
author | adityacp | 2020-02-12 15:19:41 +0530 |
---|---|---|
committer | adityacp | 2020-02-12 15:19:41 +0530 |
commit | d7a461639cd57fe78121375bd6730cacecbd63e5 (patch) | |
tree | f3143a41f12532bd9a0187795205bcbae8bf50ab | |
parent | 687a1a676eadbda5c57f3387fbaa8dd3e9359511 (diff) | |
download | online_test-d7a461639cd57fe78121375bd6730cacecbd63e5.tar.gz online_test-d7a461639cd57fe78121375bd6730cacecbd63e5.tar.bz2 online_test-d7a461639cd57fe78121375bd6730cacecbd63e5.zip |
Fix selenium test
-rw-r--r-- | yaksh/live_server_tests/selenium_test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yaksh/live_server_tests/selenium_test.py b/yaksh/live_server_tests/selenium_test.py index 41a0fad..6d9117d 100644 --- a/yaksh/live_server_tests/selenium_test.py +++ b/yaksh/live_server_tests/selenium_test.py @@ -74,6 +74,7 @@ class SeleniumTest(): submit_answer_elem.click() WebDriverWait(self.driver, 90).until(ElementDisplay( (By.XPATH, "//*[@id='ontop']"))) + self.driver.execute_script("scrollBy(0,-1000);") def test_c_question(self, question_label): # Incorrect Answer @@ -127,7 +128,7 @@ class SeleniumTest(): # open module link self.driver.find_elements_by_partial_link_text( 'START')[0].click() - self.driver.find_element_by_link_text('Start').click() + self.driver.find_element_by_link_text('START').click() # open quiz link self.driver.find_element_by_link_text(self.quiz_name).click() |