Selenium WebDriver – How To Find Broken Links On a Page

Overview: In this article, we will see how we could use Selenium WebDriver to find broken links on a webpage. Utility Class: To demonstrate how it works, I would be using below simple utility. This below method simply returns the HTTP response code the given URL. public class LinkUtil { // hits the given url and

Selenium WebDriver – How To Find Broken Links On a PageRead More »

Selenium WebDriver – Creating A Simple Keyword-Driven Framework Using Java Lambdas

Overview: In this article, I would like to show you a simple keyword-driven framework using Java8. Please do note that this article will not cover all the possible keywords. My aim here is  just to give you an idea how we could use Java – lambdas. Java 8: Java-8 has introduced a lot of cool

Selenium WebDriver – Creating A Simple Keyword-Driven Framework Using Java LambdasRead More »

Selenium WebDriver – How To Create TestNG Suite XML From Spreadsheet

Overview: If we use testNG framework, it could be difficult to maintain the testNG suite xml for a huge project where we have thousands of test cases. For such projects, it is convenient to maintain the tests in a spreadsheet & create the testNG suite xml from the spreadsheet. In this article, let’s see how

Selenium WebDriver – How To Create TestNG Suite XML From SpreadsheetRead More »

Ocular – Automated Visual Validation for Selenium WebDriver Test Automation Frameworks

Overview: Visual Validation is a process of validating the visual aspects of an application’s user interface – Verifying each element in the application is appearing exactly in the same size, color, shape etc. Lets say, your application has charts to represent some data to the end user, how can we verify if the chart is

Ocular – Automated Visual Validation for Selenium WebDriver Test Automation FrameworksRead More »

JMeter – Understanding the Scope of Variables & Sharing among Threads and Thread-Groups

In this article, We will see how we could define variables in JMeter in such a way that they can be accessed by only within the thread all the threads within thread group the whole test plan in global scope Scope: Local to Thread: Creating Variables at Run Time – Multiple Threads: By default, creating any

JMeter – Understanding the Scope of Variables & Sharing among Threads and Thread-GroupsRead More »

Selenium WebDriver – How To Automatically Switch Among Browser Windows

Overview: One of the common challenges we face while automating our tests is – switching between open windows. Many of us would have seen the code as shown below. // get the current window handle String parentHandle = driver.getWindowHandle(); for (String handle: driver.getWindowHandles()) { if (!parentHandle.equals(handle)) driver.switchTo().window(handle); } There is nothing wrong in the above code

Selenium WebDriver – How To Automatically Switch Among Browser WindowsRead More »

Selenium WebDriver – Disposable Selenium Grid Infrastructure Setup using Zalenium

Overview: We already have seen the challenges related to setting up the Selenium Grid infrastructure and how docker helps us in setting up a flexible/disposable/highly scalable selenium grid within few seconds in these articles below. Docker – Selenium Grid Setup Arquillian Cube – Managing Dockerized Selenium Grid In this article, We will see how Zalenium

Selenium WebDriver – Disposable Selenium Grid Infrastructure Setup using ZaleniumRead More »

Selenium WebDriver – How To Automate Hoverable Multilevel Dropdowns

Overview: One of the challenges test automation engineers face is – automating hoverable dropdowns as shown above in this article. Lets see how it can be automated using Selenium-WebDriver & Java. Hoverable Dropdown: Check this site. Move your mouse pointer on the element ‘Dropdown’. We can see the list of options of the multilevel ‘Dropdown’.

Selenium WebDriver – How To Automate Hoverable Multilevel DropdownsRead More »

Selenium WebDriver – How To Download And Set Up the Browser Drivers

Overview: One of the challenges we often face with test automation is – setting up the dependency to run the automated test scripts in all the remote virtual machines. For example, downloading & setting up the required version of browser drivers like chromedriver and adding them to the PATH. Doing this setup manually in every machine could

Selenium WebDriver – How To Download And Set Up the Browser DriversRead More »