You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//input[@autocomplete="username"]"}
how can I slove this? I encountered this error today. is there anyone else who solve it?
The text was updated successfully, but these errors were encountered:
Running headless didn't work for me, so call the function with headless=False. I also needed to add another 10 sec sleep() just before the line that throws the exception (you can also just up the wait time, to like 10.)
Fixed it for me.
Adding the following in init_driver() fixes the headless issue. I think the main issue is that Selenium sends "I'm headless" in the user-agent, and Twitter notices.
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//input[@autocomplete="username"]"}
how can I slove this? I encountered this error today. is there anyone else who solve it?
The text was updated successfully, but these errors were encountered: