4 ms·
I try to use explicit waits whenever possible. Luckily, the Java client library provides a rich set of combinators for declaring them. You can also define your
by danidiaz 9y ago
I try to use explicit waits whenever possible. Luckily, the Java client library provides a rich set of combinators for declaring them.
You can also define your own; they are basically functions from a WebDriver object to some other thing (usually a Boolean).
http://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/support/ui/ExpectedConditions.html http://seleniumhq.github.io/selenium/docs/api/java/org/openq...
- cdubzzz 9y agoOh wow, Java gives you a lot! Python's are actually pretty decent as well, I just came to rely almost entirely on "presence_of_element_located" with our Javascript-heavy app.