Home > Selenium

Protractor: Script execution using custom command

This article will cover below points:  Use of custom command instead of protractor along with user defined options to control the execution of script. Protractor script execution for different test suites using different configuration files i.e. In regression test suite we will execute all spec files In smoke test suite we execute

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

Sample script in robot framework

Create new file in project with .robot extension.  Robot file contains below sections:  Setting  Variables  Keywords  Test Cases  In setting section all imports can be defined. In variables section, Test data should be defined. In Keywords section, All operations can be defined by calling predefined keywords. In Test Cases section, All operations can be performed by calling user defined keywords.     Here is the

This Article is TAGGED in , , . Read more

Types of locators and best practices to use locators in selenium

There are 8 locators in selenium. Those are... tagName id name className linkText partialLinkText cssSelector xpath It is confusing to decide which locator to select while identifying the element. To avoid the confusion below are the best practices while selecting the locators. First preference should be given to tagName. If tagName is not unique or not available then next preference should

This Article is TAGGED in , , . Read more

Parallel execution of script in multiple browsers using selenium

Single script can be ran in multiple browsers. To perform that we need to define browser configurations in testng.xml file. [crayon-661e30d5449a3179372808/] In class name we can mention script name. We can mention same script name or multiple script names. If you want to run in 3 different browsers then just copy test

This Article is TAGGED in , . Read more

Comparison of Top 5 Automation Testing Tool in 2019

2019 Top 5 Automation Testing tool comparison with features, attributes etc. Selenium Katalon Studio Unified Functional Testing (UFT) Watir Ranorex Features Launch Date OR First Release Date Selenium → Developed by Jason Huggins in 2004 Katalon Studio → September 2016 UFT→ In Year 2001 Watir→ October 2012 Ranorex→ September 2007 Supported Operating Systems Selenium → Microsoft Windows, Apple OS X, Linux. Katalon Studio → Microsoft

This Article is TAGGED in , , . Read more

How to use properties file and xml file as object repository in selenium

Code to read data from properties and xml file in Selenium for Object Repository. How to store and read data from properties file what is properties file ? Properties file is a text file with .properties as extension where tester can store environment configuration details  like browser name,driver path ,url,userid , password that

This Article is TAGGED in , , . Read more

Automate windows application using sikuli selenium

What is sikuli Sikuli is a open source automation tool which is used to automate webelement of web application and window based pop up. To integrate sikuli with selenium download and install sikuli in your local machine To download and install sikuli follow the below steps: ->Go to google ->Search for  "Sikuli download" ->Click on the

This Article is TAGGED in , , . Read more

automate gmail login process using Selenium

Code to automate gamil login, send email and attachment. To use below code need to replace username password with actual values. Selenium code to send email using gmail by performing UI Operations. Below code will perform operations like 1) Launch chrome browser 2) Open Gmail URL 3) Enter Email ID and Password 4) Navigate to INBOX 5)

This Article is TAGGED in , , . Read more

How to execute selenium script in Brave browser

 Execute selenium script in Brave browser To download and install selenium configuration please refer link: 1.Download and install brave browser in system:                ->Go to Brave browser site.                ->Download Brave Browser according to your system configuration.    As I have 64 bit

This Article is TAGGED in , . Read more

How to Create Configure TestNG project

Setting up a new TestNG project In the previous topic, we have discussed the installation of TestNG in the Eclipse. Let's create a TestNG project in the eclipse and Name it as "TestNGProject". Step 1. Click on File > New > Java project. Step 2. Type "TestNGProject" as the Project Name then click Next. Step

This Article is TAGGED in , , , . Read more