How to handle synchronization in UFT/QTP
In any test automation framework, browser handling is the most important part during automation scripting. Let’s see how to handle synchronization in UFT. which you…
How to launch chrome incognito using UFT
Using UFT we can launch Chrome incognito with the help of a small program. First, we will create an object of shell and then we…
Get menu and submenu names in the Windows application using UFT
UFT works very well with Windows as well as web applications. To get menu and submenu names in the Windows application, we can create a…
Invert a number using Java
Java is a beautiful language if you know how to build your logic. This is the most important thing of all. Invert a number using…
Validate prime number using Java
In order to validate prime number using Java, first of all, let’s see what is a prime number. Example code: Validate prime number using java
String reverse in VBScript without using inbuilt function
String reverse in VBScript is a very common task. If you need to reverse a string in VBScript without using inbuilt reverse functions, we can…
Verify a string is present in an array using VBScript
In order to verify a string is present in an array, we will utilize the dictionary object provided by VBScript. First, we will create an…
Count Alphabetical characters using VBScript
In order to count Alphabetical characters using VBScript in a string, first we need to get the characters from the given string, one char at…
Verification of Palindrome using VBScript
A palindrome is a word, sentence, verse, or even number that reads the same backward or forward. For example- ATATA, BOB, 12321 In order to verify…
How to write data into Excel using VBscript
In order to write data into Excel using VBScript, we can leverage Excel.application object. This object provides multiple methods which help us to create, open,…
How to configure Jenkins Global Settings
In this section, we will explore the advanced configuration options available in Jenkins. We will focus on the global settings that apply to the entire…
How to manage Jenkins Nodes and Distributed Builds
In this section, we will explore how to manage Jenkins nodes and configure distributed builds. Jenkins allows you to distribute your build workload across multiple…
Jenkins Job DSL and Pipeline as Code
In this section, we will explore Jenkins Job DSL (Domain Specific Language) and Pipeline as Code, which are powerful techniques for defining and managing Jenkins…
How to create Runner class in Cucumber using Java
Cucumber is a BDD-based tool that works well with selenium and many other tools. Here we have a sample Runner class to be used with…
Read write excel file in Java and Apache POI
In order to read write excel file in Java and APACHE POI, we can use this method which uses FileInputStream, and XSSFWorkbook to get into…
How to use Page Factory in Selenium Page object model
Test Automation frameworks based on the Page object model design pattern and Page Factory in Selenium WebDriver help to keep the locators separate from the…
How to read an XML file using java
To read an XML file using Java, you can use the javax.xml.parsers.DocumentBuilder class and its parse method. Here is an example of how you might…
How to read a JSON file using java
To read a JSON file using Java, you can use the org.json library. Here’s an example of how you can use this library to read…
How to select a dropdown using Puppeteer
You can select a dropdown using Puppeteer by following these steps: First of all, find the element on the page using a DOM selector. You…

VBScript Error Handling – On Error Resume Next, On Error Goto 0
VBScript Error handling in UFT automation scripts is very important like in any other language. We have some very common VBScript examples to demonstrate it….
How to get column index in a webtable using UFT
Suppose that there is a webtable on the page and you have a column name. Now if you want to get the column index in…

How to get most repeated value from excel using VBScript
In order to get most repeated value from excel using VBScript, we have a ready-to-use function created in VBScript. All you need to do is…

How to rename a file using JavaScript
In javascript-based test automation projects, if you need to rename a file using javascript, you can do that by using fs node package. These are very important…

How to delete a file using JavaScript
In test automation projects, if you need to delete a file using javascript, you can leverage the ‘fs’ node package. These are very important for any Javascript-based…

How to associate function library at runtime in UFT- Complete code
The function library is the backbone of any test automation framework. You can associate function library at runtime using AOM. It is designed to handle…

How to verify object property using UFT
We have to verify object property using UFT in almost every automation script we create while working on any test automation project. Here we have…

How to select all text using UFT- CTRL+A and CTRL+C method
There may be some instances where you need to copy and paste or select all text using UFT. This can be achieved in many ways…

How to verify the position of an object using UFT on a webpage
We can verify the position of an object using UFT by utilizing two properties named clientWidth and offSetLeft. Suppose that we have two elements namely…

How to verify presence of scrollbar using UFT
We can verify presence of scrollbar using UFT very easily when we have a scrollbar present on the screen. In order to verify the presence…

How to integrate Selenium with Jenkins – Step-by-step Example
Given the popularity of cloud technology, knowing How to integrate Selenium with Jenkins pipeline has become very important. Jenkins is the most famous tool for CI-CD….

How to configure selenium with Jenkins – Parallel Execution complete tutorial
Let’s take a look at how to configure Selenium with Jenkins. Since Jenkins is a very important tool that helps us in many ways in…

How to read console output in Jenkins during Build – 100% working code block
When you run a job in Jenkins, it generates a console output at run time which can be seen during a build. There are some…

How to read text file using VBScript – FileSystemObject
In order to read text file using VBScript, we can use multiple methods provided by FileSystemObject. FSO provides three functions i.e. read, readline, readall. These…

How to write text file using VBScript
We can write text file using VBScript with the help of many functions provided by FileSystemObject. Functions provided by FileSystemObject such as Write, Writeline, Writeblanklines…

How to create a text file using VBScript – CreateTextFile
If you have to create a text file using VBScript, it provides a very efficient tool FileSystemObject. Further, there are many methods provided by FileSystemObject…

How to create a folder using VBScript – FileSystemObject
FileSystemObject can be used to create a folder using VBScript. FileSystemObject also known as fso is one of the most efficient tools provided by VBScript. We…

How to Write data in Excel file using Java and Apache POI
Similar to reading data from an excel file, you would require to write data in excel file using java in your test automation. Read further…

How to read excel file In Java- 100% Working code
Any type of testing requires test data in Test automation Let’s see how we can read Excel file in Java and use that in Selenium…

How to check all checkboxes in UFT – ChildObjects in UFT
If you want to check all checkboxes in UFT on a webpage, there are many ways to do that. One of the most used approaches…

How to ping a network using VBScript
You can ping a network using VBScript. Yes, you read it right. We don’t know how many times we must have the necessity to ping…

How to handle web table in Selenium WebDriver
WebTables are a very important part of any web-based application and Often we come across a scenario where we have to validate data in a…

How to select dropdown in Selenium using the Select class
In any web-based application, drop-downs are used to help the end user to select a value from a set of predefined values. e.g. Selecting a…

How to get all options from a dropdown in Selenium WebDriver
In order to get all options from a dropdown in Selenium WebDriver, we can utilize the same Select class, which we use to select a…

How to create Action Template in UFT
What is Action Template? When we create an automation script in UFT tool or any other tool, we write some kind of documentation such as…

How to find broken links in Selenium WebDriver
Broken links or dead links are those links that are displayed as a link on the webpage but when we click on them nothing happens….

How to perform Mouse Hover in Selenium WebDriver
There might be some cases when you want to perform Mouse Hover in Selenium WebDriver, which means moving your mouse over an element before doing…

How To Highlight Element Using Selenium WebDriver
If you want to see the exact element being interacted with by Selenium, you can write code to highlight element using Selenium WebDriver. Also sometimes…

Prime number program using Java
In interviews, you may be asked to write a program for how to validate if a given number is a prime number using Java. Validating…

How to add APACHE POI in Selenium Project – Apache POI
APACHE POI is the most used library for working with Excel workbooks in Selenium Automation projects. There are two ways you can add these jars to your automation project. One way is through the POM.xml in your maven project and the other way is by downloading the jars directly from Apache website and adding them in build path of your automation project.

Selenium Wait Commands – Complete guide 4 types of wait
Selenium Wait Commands It is very important to understand Selenium wait commands if you are trying to work on selenium automation. Why? Let’s see… In…
Setup your test automation quicker!
Working code blocks for test automation tools
