What am I doing wrong here? The browser opens and goes to the page, but I get the following error message. I have tried xpath; I have tried by id...
Traceback (most recent call last):
File "", line 1, in ms()
File "C:/Users/mohsen/Google Drive/scraper/Code/ICRC.py", line 47, in ms ICRC_GetLinks()
File "C:/Users/mohsen/Google Drive/scraper/Code/ICRC.py", line 72, in ICRC_GetLinks EC.presence_of_element_located((By.NAME, "search_last_name")))
File "C:\ProgramData\Anaconda3\lib\site-packages\selenium\webdriver\support\wait.py", line 80, in until raise TimeoutException(message, screen, stacktrace)
TimeoutException
The code is:
link = "https://iccrc-crcic.ca/find-a-professional/"
# this will open up new window with the url provided above
driver = webdriver.Chrome()
driver.get(link)
sleep(1)
WebDriverWait(driver,30).until(
EC.presence_of_element_located((By.NAME, "search_last_name")))
driver.find_element_by_name("search_last_name").send_keys("Smith")
