WebDriver click() vs JavaScript click()
The Story:
The Story:
In Python, Java and several other selenium bindings, there is a very convenient abstraction over select->option HTML constructions, a Select class.
While writing selenium tests in Python, I got used to using Explicit Waits a lot for waiting for a page to load, or for waiting for an element to become visible, or clickable etc:
I’ve been using selenium (with python bindings and through protractor mostly) for a rather long time and every time I needed to execute a javascript code, I’ve used execute_script() method. For example, for scrolling the page (python):