Generating Alert In Selenium Webdriver using JavascriptExecutor

If you need to generate alert during your software test case execution then you can use java script Executor in selenium webdriver software testing tool. Java Script Executor is very helpful interface of selenium webdriver because using it we can execute any java script. I think manual alert generation in webdriver test is required only in rare … Read more

Selenium WebDriver – Get Domain Name Using JavascriptExecutor

You need current software web application’s page URL when you have to compare it with your expected URL. You can do it using WebDriver basic operation command driver.getCurrentUrl();. This method we have seen in my Previous Post. If you remember, we can use “storeLocation” command to get current software web application’s page URL in selenium IDE software testing … Read more

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