Skip to content

Instantly share code, notes, and snippets.

@vojd
Created November 22, 2012 14:53
Show Gist options
  • Save vojd/4131551 to your computer and use it in GitHub Desktop.
Save vojd/4131551 to your computer and use it in GitHub Desktop.
selenium_wait
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