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

TimeoutException on the login set. #2

Open
lucianofreitas opened this issue Aug 20, 2021 · 1 comment
Open

TimeoutException on the login set. #2

lucianofreitas opened this issue Aug 20, 2021 · 1 comment

Comments

@lucianofreitas
Copy link

Hi Mariya, thank you for your neat and detailed work. I have stucked in the login set with TimeoutException error message. It seems the wait function is not working (bellow). I´m new on this. would you give a hint on how to solve it?

#target username
username = WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "input[name='username']")))
password = WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "input[name='password']")))

@MariyaSha
Copy link
Owner

This error could mean several things:

  • either your system is very slow and it takes more than 20 seconds to load a web page, which is very unlikely.
  • either the element doesn't exist on the page, which can't be the case either as the same code works for others.
  • or, what I believe might cause it, is a Web Driver window that is too narrow in size. When you change the width of the browser window, it sometimes refreshes the page to adjust the entire site to the new settings. It happened to me before (unfortunately in the middle of a live stream hahaha XDD) but once I enlarged the window the problem was solved.
  • it might be an issue I didn't encounter yet

Also, my apologies on the delay replaying to this issue! I check the comments on YouTube rigorously, and I'm not always aware that there are Github issues that require my attention :( I'm not here nearly as often as I should be, sorry for the long wait...

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