Created
August 8, 2020 15:46
-
-
Save StephenFordham/687a6b8629716ceec9de97a2c7b1f967 to your computer and use it in GitHub Desktop.
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
from selenium.webdriver.support.wait import WebDriverWait | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support import expected_conditions as EC | |
search_box = WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.CSS_SELECTOR, 'input[id="orb-search-q"]'))) | |
#search_box = driver.find_element_by_css_selector('input[id="orb-search-q"]') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment