• JavaScript Alert in Selenium Webdriver
    Quality,  Selenium,  Software Testing,  Webdriver

    JavaScript Alert in Selenium Webdriver

    In the Web application, there are several JavaScript alert messages appear while executing the scripts or simply operating the application. So we need to know that how to handle JavaScript Alert in Selenium Webdriver. Let’s take a scenario to handle JavaScript Alert message Scenario: Write a program to verify the JavaScript alert message for any validation of any overcount. Click on OK button of JavaScript alert message. Before clicking on Ok button, take the text message which is available in the alert message and print. To handle the alert, we need to navigate from main window to alert. Then we can perform actions like either OK or Cancel. Accept: It…

  • Automation Script Implementation in Webdriver
    Quality,  Selenium,  Software Testing,  Webdriver

    Automation Script Implementation in Webdriver

    Automation Script Implementation in Webdriver: Let’s know, how to do Automation Script Implementation in Webdriver in Eclipse by using Java. Here in this article, I have implemented a Selenium Webdriver automation script of Practice form to fill for the purpose of Practice for Automation Testing. In this script, I have taken Project Name: Selenium Automation, Package name: Practice, Classname: Webdriver_Practice In this script I have used to automate Text boxes, dropdown, Multiple options select in List box, Button, Radio button, Checkbox, Image path for upload, parameterization, Google chrome browser launch etc.   package Practice.Practice; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.support.ui.Select;   public class Webdriver_Practice {                                public WebDriver driver;…