Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeour exception #4

Open
fabioaraujopt opened this issue Feb 21, 2019 · 1 comment
Open

Timeour exception #4

fabioaraujopt opened this issue Feb 21, 2019 · 1 comment

Comments

@fabioaraujopt
Copy link

Hello, do you have any ideia why is it happening?
Thanks


TimeoutException Traceback (most recent call last)
in ()
267
268 date=datetime.strptime("2019-04-17","%Y-%m-%d")
--> 269 df=scrape_data(date,"New York","Russia","Moscow")
270 print (task_3_dbscan(df))
271 task_3_IQR(df)

in scrape_data(start_date, from_place, to_place, city_name)
151 driver.get('https://www.google.com/flights/explore/')
152 wait = WebDriverWait(driver, 20)
--> 153 wait.until(EC.visibility_of_element_located((By.CSS_SELECTOR, "div.LJTSM3-k-b")))
154 from_input = driver.find_element_by_xpath('//*[@id="root"]/div[3]/div[3]/div/div[2]/div/div')
155 from_input.click()

/usr/local/lib/python3.6/dist-packages/selenium/webdriver/support/wait.py in until(self, method, message)
78 if time.time() > end_time:
79 break
---> 80 raise TimeoutException(message, screen, stacktrace)
81
82 def until_not(self, method, message=''):

TimeoutException: Message:

@PhoenixDD
Copy link
Owner

Hey, Since it has been quite long that I have wrote this code, you might have to figure it out by yourself. But most likely it seems that since the website has changed a lot, the automation properties might have changed, like the css attributes, button locations, etc, and that is why it's timing out as it is not able to find the items, let me know if you find anything, would appreciate it if you could build up on this.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants