summaryrefslogtreecommitdiff
path: root/yaksh/live_server_tests
diff options
context:
space:
mode:
authoradityacp2021-01-25 09:26:34 +0530
committeradityacp2021-01-25 09:26:34 +0530
commit419c66d29f20123d6f1e04072829973d84ff40c5 (patch)
tree931a14599fe7a994edfe646c4ee622ff7949fabd /yaksh/live_server_tests
parent93860c0fb3c61d64878ff73c3c28ec3fd4e1ad7a (diff)
parent9b9ebb227bbaafca3daf5485c3bbe0d948d3e843 (diff)
downloadonline_test-419c66d29f20123d6f1e04072829973d84ff40c5.tar.gz
online_test-419c66d29f20123d6f1e04072829973d84ff40c5.tar.bz2
online_test-419c66d29f20123d6f1e04072829973d84ff40c5.zip
Merge branch 'master' of https://github.com/FOSSEE/online_test into code_refactors
Diffstat (limited to 'yaksh/live_server_tests')
-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()