Category: Selenium

How to Download & Install TestNG in Eclipse for Selenium WebDriver

Following is a step by step guide to install TestNG in Eclipse Installing TestNG in Eclipse Step 1) Launch Eclipse. On the menu bar, click Help. Choose the “Install New Software…” option. Step 2) In the Eclipse Install dialog box Enter “http://dl.bintray.com/testng-team/testng-eclipse-release/” in the Work with box Click the Add button. Step 3) In Add repository dialog […]

TestNG Annotations, Framework, Examples in Selenium

table of contents What is TestNG? Why Use TestNG with Selenium? Advantages of TestNG over JUnit Create Test Case Using TestNG Annotations How to Create a New TestNG Test File Coding of our First TestNG Test Case Example Running the Test Generating HTML Reports Annotations used in TestNG Multiple Test Cases Parameters Summary of TestNG […]

How to Handle Web Table in Selenium WebDriver

Table of Contents Reading a HTML Web Table How to write XPath for Table Set the parent Element(Table) Add the child elements Add Predicates Add the succeeding Child Elements using the appropriate Predicates. Accessing Nested Tables Using Attribute as predicates  Summary Reading a HTML Web Table There are times when we need to access elements […]

Alert & Popup Window Handling in Selenium WebDriver

Selenium Alert & Popup Window Handling In this article we will see how to handle popup in Selenium and different types of alerts found in web applications Testing. We will also see how to handle Alert in Selenium WebDriver and how do we accept and reject the alert depending upon the alert types. Table of […]

Mouse Click & Keyboard Event: Action Class in Selenium WebDriver

In this article we will check how to handle Keyboard and Mouse event in Selenium WebDriver. Table Of Contents 0.1 Action Class in Selenium 0.2 Handling Keyboard & Mouse Events 0.3 Summary Action Class in Selenium Action Class in Selenium is a built-in feature provided by the selenium for handling keyboard and mouse events. It […]

How to Locate Elements by Link Text & Partial Link Text in Selenium WebDriver

Table Of Contents 0.1 What is LinkText in Selenium? 0.1.1 Links matching a criterion 0.1.2 Accessing links using Exact Text Match: By.linkText() 0.2 Accessing links using Partial Text Match: By.partialLinkText() 0.3 How to get Multiple links with the same Link Text 0.3.1 Case-sensitivity for Link Text 0.4 Summary What is LinkText in Selenium? A link […]

How to Select Value from Dropdown using Selenium WebDriver

This is article we will learn how to handle Dropdown in selenium and Multiple Select operations. Table Of Contents 0.1 Select Option from Drop-Down Box 0.2 Selecting Items in a Multiple SELECT elements. 0.3 Summary Select Option from Drop-Down Box Following is a step-by-step process on how to select value from dropdown in Selenium. Before […]

How to Select Checkbox and Radio Button in Selenium WebDriver

In this article we will learn how to identify following form elements and work with it with real examples. Radio button Check Box Table of Contents 0.1 Radio Button 0.1.1 Test scenario to be automated 0.1.2 Code to verify isDisplayed() method of Selenium WebDriver.  0.1.3 Code to verify isEnabled() method of Selenium WebDriver 0.2 Check […]

Selenium Form WebElement: TextBox, Submit Button, sendKeys(), Click()

Table Of Contents 0.1 What are Form WebElement? 0.2 Introduction to WebElement, findElement(), findElements() 0.3 Input Box 0.4 sendKeys in Selenium 0.4.1 Entering values in Input Boxes 0.5 Deleting values in input boxes 0.6 Buttons 0.6.1 Submit buttons 0.7 Complete Code 0.8 Summary What are Form WebElement? Forms are the fundamental web elements to receive […]

First Program of Selenium WebDriver with Java

Table of Contents Selenium WebDriver in Java with Different Browsers Explaining the code Importing Packages Instantiating objects and variables Launching a Browser Session Get the Actual Page Title Compare the Expected and Actual Values Terminating a Browser Session Running the Test Selenium WebDriver in Java with Different Browsers We will create our first Selenium WebDriver […]