Created
November 22, 2012 14:53
-
-
Save vojd/4131551 to your computer and use it in GitHub Desktop.
selenium_wait
This file contains 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: | |
WebDriverWait(self.browser, 10).until( | |
lambda driver : self.assertEqual( | |
"1", driver.browser.find_element_by_xpath("//*[@id='cart-amount']").text) | |
) | |
except Exception as e: | |
print e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment