I'm trying to wait for the search drop down box to appear before clicking on it on https://amazon.com using the following snippet of code.
search_dropdown_box = WebDriverWait(chrome_browser,30).until(EC.visibility_of_element_located((By.ID,"searchDropdownBox")))
Despite this however, the snippet of code never seems to work, it always ends up failing with the following exception.
File "C:/Users/DHIWAKAR-PC/PycharmProjects/AlationProject/assignment.py", line 18, in <module>
search_dropdown_box = WebDriverWait(chrome_browser,10).until(EC.visibility_of_element_located((By.ID,"searchDropdownBox")))
File "C:\Python34\lib\site-packages\selenium\webdriver\support\wait.py", line 80, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:
Is there something wrong with how I'm using the expected condition or is there some better expected condition that I can make use of ?