summaryrefslogtreecommitdiff
path: root/yaksh/live_server_tests/selenium_test.py
diff options
context:
space:
mode:
authorPalaparthy Adityachandra2020-12-25 13:34:38 +0530
committerGitHub2020-12-25 13:34:38 +0530
commit30dd519ba7a5277348960a696f3a7cbd91f3f72f (patch)
treed2b7215cad6e85c2d508575dc0edddd277e4c561 /yaksh/live_server_tests/selenium_test.py
parent9bbaae821f73a3ea16af92fd6b41cd9e86f00763 (diff)
parenta29473b7ac933b31368ca163c758e8eadb4c411e (diff)
downloadonline_test-30dd519ba7a5277348960a696f3a7cbd91f3f72f.tar.gz
online_test-30dd519ba7a5277348960a696f3a7cbd91f3f72f.tar.bz2
online_test-30dd519ba7a5277348960a696f3a7cbd91f3f72f.zip
Merge pull request #809 from adityacp/new_ui
Add new UI over bootstrap
Diffstat (limited to 'yaksh/live_server_tests/selenium_test.py')
-rw-r--r--yaksh/live_server_tests/selenium_test.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/yaksh/live_server_tests/selenium_test.py b/yaksh/live_server_tests/selenium_test.py
index 6d9117d..0c9cfcc 100644
--- a/yaksh/live_server_tests/selenium_test.py
+++ b/yaksh/live_server_tests/selenium_test.py
@@ -126,9 +126,16 @@ class SeleniumTest():
def open_quiz(self):
# open module link
- self.driver.find_elements_by_partial_link_text(
- 'START')[0].click()
- self.driver.find_element_by_link_text('START').click()
+ try:
+ self.driver.find_elements_by_partial_link_text(
+ 'Start')[0].click()
+ except IndexError:
+ self.driver.find_elements_by_partial_link_text(
+ 'Continue')[0].click()
+ try:
+ self.driver.find_element_by_link_text('Start').click()
+ except Exception:
+ self.driver.find_element_by_link_text('Continue').click()
# open quiz link
self.driver.find_element_by_link_text(self.quiz_name).click()