WebDriver how to wait for alert in selenium 2

As we have seen in my previous posts, we can use textToBePresentInElementLocated(By, String) WebDriver condition to wait for text present on page and we can use elementToBeClickable(By locator) to wait for element clickable/present on page. If you read both those posts, We had used explicit waits in both the cases and both are canned expected conditions of webdriver so we … Read more

WebDriver – wait for text to be present with example using explicit wait

Some times you need to wait for text, wait for element, wait for alert before performing actions in your regular software web application test cases of selenium webdriver. Generally we need to use this types of conditions in our test case when software web application page is navigating from one page to other page. In my previous post, … Read more

Selenium WebDriver wait for page title with example

This guide will show you how to use Selenium WebDriver to wait for page title during test execution. You’ll learn how to apply explicit waits with ExpectedConditions.titleIs() and titleContains() to ensure your tests proceed only when the expected title appears. WebDriver has many Canned Expected Conditions by which we can force webdriver to wait explicitly. … Read more