Created
November 10, 2015 05:45
-
-
Save tonytan4ever/2a1fe5fe534586f6a11f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
driver.find_element_by_id("startserverbtn_env4a").click() | |
except NoSuchElementException: | |
print driver.find_element_by_id("start_form_env4a").text | |
self.assertTrue('The Studyserver is running as process' in driver.find_element_by_id("start_form_env4a").text) | |
else: | |
WebDriverWait(driver, 30).until( | |
EC.text_to_be_present_in_element((By.CSS_SELECTOR, "span.success"), | |
'The Studyserver has been sucessfully started') | |
) | |
self.assertRegexpMatches(driver.find_element_by_css_selector("span.success").text, r"^The Studyserver has been sucessfully started[\s\S]*$") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment