Selenium WebDriver – How To Run Automated Tests Inside A Docker Container – Part 1

Overview: Testautomationguru already has few docker and selenium related articles which talks about setting up the dockerized selenium grid. Setting up Dockerized Selenium grid. Managing Dockerized Selenium Grid using Arquillian cube. Setting up Dockerized Selenium grid in AWS / Cloud using RancherOS Even if we have a selenium grid, we still need a host to run our tests – ie.. a […]

Selenium WebDriver – How To Set Up Dockerized Selenium Grid in AWS / Cloud

Overview: We already have seen setting up JMeter Distributed Infrastructure using RancherOS.  We will see how to manage dockerized selenium grid using RancherOS. Rancher helps us to set up the grid in the local machine / AWS / any cloud. I would suggest you to read the above article on setting up the Rancher UI

Selenium WebDriver – How To Set Up Dockerized Selenium Grid in AWS / CloudRead More »

Selenium WebDriver – How To Automate Charts And Graphs Validation

Overview: Automated validation of Charts & Graphs is one of the biggest challenges in test automation. In our application, We have tons of charts. I would show you how I have automated that to give you some idea. Ocular: I would be using Ocular – the image validation library! In fact, I created this Ocular lib just for this purpose!

Selenium WebDriver – How To Automate Charts And Graphs ValidationRead More »

Selenium WebDriver – How To Execute Tests In Multiple Environments

Overview: I have been running thousands of automated regression test cases in multiple test environments for years. As part of CI / CD pipeline, I run the tests in QA, UAT, Staging and PROD. In this article, I would like to show you the approach I follow to make the tests run on any given test

Selenium WebDriver – How To Execute Tests In Multiple EnvironmentsRead More »

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 »

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 »