How do you make Selenium 2.0 wait for the page to load?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Use implicitly wait for wait of every element on page till given time.
this wait for every element on page for 30 sec.
Another wait is Explicitly wait or conditional wait in this wait until given condition.
In id give static element id which is diffidently display on the page, as soon as page is load.
use a if condition and for any of the element present
Ruby implementation:
You can also use the class:
ExpectedConditions
to explicitly wait for an element to show up on the webpage before you can take any action further actionsYou can use the
ExpectedConditions
class to determine if an element is visible:See
ExpectedConditions class Javadoc
for list of all conditions you are able to check.SeleniumWaiter:
And to you use it:
You can explicitly wait for an element to show up on the webpage before you can take any action (like element.click())
This is what I used for a similar scenario and it works fine.