Home > Selenium (Page 3)

Best Selenium Automation framework TestNG

TestNG: Powerful and easy to use framework/tool over JUnit and NUnit. Extensively used by all automation testers due to its reporting feature. What are the features of TestNG? Annotations are widely used in the TestNG framework. Annotation is used to describe a piece of code that is inserted into the program or

This Article is TAGGED in , , , , . Read more

Running selenium script parallel in multiple browsers using TestNg

We can run selenium scripts parallely in multiple browsers using TestNg.xml configuration. Below is the configuration we need to make in TestNg.xml to run in chrome and firefox browsers. Below is the sample code. It opens mundrisoft.com website in chrome

This Article is TAGGED in , , . Read more

Java library for text file operations

To perform text file operation like Create File, Compare Text file, Replace words etc we have created jar which you can download Attached Zip File: TextUtility  After extracting zip file you will get jar file which contains below functionality which is extremely easy to use. Functions appendLine → Read Text File and append new

This Article is TAGGED in , , , , . Read more

Install TestNG Framework

What is TestNG FrameWork? 1. TestNG is the most widely used testing framework in the software testing industry. It is an open source automated Testing framework. 2. TestNG is an automation testing framework in which NG stands for "Next Generation". 3. TestNG is used for different kinds of testing like unit, functional, integration

This Article is TAGGED in , , , , , , . Read more

Different ways to create Xpath for a single Web element

Please find list of ways by using which we can create xpath to identify WebElement in the DOM. Here we have mentioned 15 different xpath for single web element (Society Name) from https://www.societyhive.com   //input[@id='txtSocietyName'] //input[@id='txtSocietyName' and @name='societyName']  //input[@id='txtSocietyName' or @name='societyName'] ---Toggle switch //span[text()='Please enter society name']//preceding-sibling::input --------Use of text() method //span[.='Please enter society name']//preceding-sibling::input -----Functionality of

This Article is TAGGED in , . Read more

JavaScriptExecutor in Selenium

Javascript executor is used to execute javascript from selenium. Actions which need to be performed forcibly can be performed using javascript executor. For example selenium not able to click on particular web element due to disable state of it but our requirement is to click on that element. In this

This Article is TAGGED in , , , . Read more

MS SQL connection using JDBC in Selenium

To connect MS SQL database using jdbc driver in java, we need to download jdbc driver for MS SQL server. Refer below link to download MS SQL jdbc driver file.  Add external Jar file to project: Right click on project, Go to properties → Java Build Path → Click on Library tab  Add external

This Article is TAGGED in , . Read more

Protractor Tutorial

Protractor is a Node.js program which is used for testing of Angular JS applications. It is combination of Selenium, Jasmine, Webdriver etc. Along with Angular JS applications protractor can also be used in testing of normal web applications. Installation of Protractor: Protractor installation and configuration Advantages and disadvantages of protractor Locators and Sample

This Article is TAGGED in , . Read more

Selenium Webdriver tutorial

Installation and Introduction of Selenium: Selenium is an open source automation testing tool which is used for running the test script and to automate the web applications. Due to open source (free) tool this is widely used automation tool in the market. Programming languages supported by Webdriver are Java, .net,

This Article is TAGGED in , , . Read more