Skip to content

Instantly share code, notes, and snippets.

@converge
Created December 19, 2018 10:39
Show Gist options
  • Save converge/f657ec2675487f1c15dc798b027e3c3e to your computer and use it in GitHub Desktop.
Save converge/f657ec2675487f1c15dc798b027e3c3e to your computer and use it in GitHub Desktop.
wait = WebDriverWait(session.browser, 3)
element_present = EC.presence_of_element_located(
(By.XPATH, "//p[@id='slfErrorAlert']")
)
wrong_credentials = wait.until(element_present)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment