Executing javascript in selenium webdriver to get page title with example

JavascriptExecutor is very useful Interface in webdriver software testing tool. Interface JavascriptExecutor helps you to execute javascript in your software test case whenever required. If you knows/remember, We had seen Different examples of executing javascript in selenium IDE to perform different actions. Let me give you one example of executing javascript in selenium WebDriver software testing tool. Sometimes in your test … 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

How to use implicit wait in selenium webdriver and why

There are 2 types of waits available in Webdriver/Selenium 2 software testing tool. One of them is Implicit wait and another one is explicit wait. Both (Implicit wait and explicit wait) are useful for waiting in WebDriver. Using waits, we are telling WebDriver to wait for a certain amount of time before going to next step. We … 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