Skip to content

Instantly share code, notes, and snippets.

@teal33t
Created February 29, 2020 21:55
Show Gist options
  • Save teal33t/4b4cf03d67adf24a7d8a5bb0147c653d to your computer and use it in GitHub Desktop.
Save teal33t/4b4cf03d67adf24a7d8a5bb0147c653d to your computer and use it in GitHub Desktop.
self.wait_between(MIN_RAND, MAX_RAND) # wait
search_btn = WebDriverWait(driver, 20).until( EC.presence_of_element_located((By.ID ,"submit")))
# Wait again
self.wait_between(MIN_RAND, MAX_RAND)
search_btn.click() # click on submit
self.wait_between(LONG_MIN_RAND, LONG_MAX_RAND) # wait again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment