Tag: Selenium

  • Handling dropdown’s using Selenium Webdriver

    Dropdown’s can be handled in Selenium webdriver using Select Class which has some predefined methods like selectByIndex(index), selectByValue(value), selectByVisibleText(text), getFirstSelectedOption(),getOptions() Select class can be found under org.openqa.selenium.support.ui.Select package Consider dropdown (Fig a) from a sample webpage. If we inspect the above dropdown refer fig (a) its html code will be as shown below In order…

  • What is Synchronization? Handling Synchronization in Selenium WebDriver using C#:

    Synchronization meaning: when two or more components involved to perform any action, we expect these components to work together with the same pace. The co-ordination between these components to run paralelly is called Synchronization. Synchronization (Wait) in Selenium has a great significant value. Now a day, we see most of the web applications are developed…

  • How to Set Up Selenium WebDriver in Visual Studio Enterprise 2015?

    Pre-requisite : Visual Studio Enterprise 2015 application should be installed into the system. Create the new project in Visual Studio : Select New option from File menu and click on Project. Refer Fig.1. Fig.1 On New Project windows popup > Select Visual C# > Windows > Console Application > Enter Name and Location and click on OK button. Refer Fig.2. Fig.2…

  • Parallel Execution using Selenium Webdriver and TestNG

    While testing a web application it is very important to test the application on different browsers. We can achieve this by using Selenium Web driver and TestNG. If there are more number of scripts to be executed and executing them on each and every browsers sequentially is time consuming. This can be avoided using a…

  • Handling Radio buttons and Checkboxes using Selenium Webdriver

    The main difference between Radio button and Checkbox is that, using radio button we will be able to select only one option from the options available. whereas using checkbox, we can select multiple options. When we inspect a Radio button or a Checkbox, HTML code looks as below Using Click() method in Selenium we can…

  • Page Object Model

    Automation Testing with Selenium using Page Object Model Page Object Model (POM) Writing selenium scripts is not tough job. We have to find the elements and perform the operation on the webpage. Consider the below example of simple selenium script which will navigate to gmail website and identifies the email id field and enters the email…

  • How to upload the files in Selenium using AutoIt

    Selenium   WebDriver Test Automation framework allows us to write the automation scripts for web applications and execute them in various browsers. In some test scenarios, you might need to verify the functionality of uploading the files. The file web element launches the windows file upload dialog to browse and select the files. With the help…

  • Data driven testing in selenium webdriver using excel

    Data-driven testing (DDT) is taking a test, parameterizing it and then running that test with varying data. This allows you to run the same test case with many varying inputs, therefore increasing coverage from a single test. In addition to increasing test coverage, data driven testing allows the ability to build both positive and negative…

  • Selenium Locators

    Selenium webdriver uses locators to find the web elements on web page. The following are the list of locators used by selenium. 1. Locating an Web Element By ID: The most efficient way to locate an web element on a web page is By ID. IDs are the fastest locator and should always be the…

  • Identifying Web Elements using Selenium Webdriver

    What is Web Element? Anything present on the webpage is Web Element. Such as text box, button, link etc. Before performing any action in Selenium we should identify the Web Element using its characteristics given by the application developer with the help of HTML. What are the components of Web Element? While developing the Web…