Hacker News new | ask | show | jobs
by cdubzzz 3211 days ago
I agree that implicit wait is something of a time waster.

Regarding clear, that does appear to be exactly what the Python implementation does[0], but in my experience it just seemed to fail at random. If I remember correctly it worked most of the time with geckodriver, and then hardly ever with chromedriver. Really not sure what exactly the deal is with that...

And yes the time wait is a little pointless (:

[0] https://github.com/SeleniumHQ/selenium/blob/master/py/seleni...

1 comments

clear() works for me consistently. At the same time, I had cases before when sendkeys was not sending complete string, so I had to compare it with get_attribute('value') to be sure.