How-to articles, tricks, and solutions about WEBDRIVER

How can I ask the Selenium-WebDriver to wait for few seconds in Java?

To make the Selenium WebDriver wait for a specified number of seconds in Java, you can use the Thread.sleep method. Here's an example of how you can do this:

How can I check if an element exists with Selenium WebDriver?

To check if an element exists with Selenium WebDriver, you can use the findElements() method of the WebDriver interface and check the size of the returned list.

How to switch to the new browser window, which opens after click on the button?

To switch to a new browser window in Selenium, you can use the switchTo() method with the WindowHandle of the new window.

Wait for page load in Selenium

In Selenium, you can use the WebDriverWait class to wait for a page to load.