Selenium WebDriver and Design Patterns – Brand New Udemy Course

Dear Readers, Become lead SDET / Automation Architect!! Learn Selenium WebDriver Design Patterns. Design Patterns are repeatable and reusable solutions for software design related issues. This course helps you to get introduced to the some of the frequently used Design Patterns in the software development community and demo how we can use them in Test […]

AssertJ Custom Assertions For Selenium WebDriver

Overview: In this tutorial, I would like to show you how to create use AssertJ Custom Assertions for Selenium tests. AssertJ: AssertJ is a simple assertion library for Java using which assert statements can be written in fluent style. Fluent APIs make your code readable and easily maintainable. We already have seen few articles on

AssertJ Custom Assertions For Selenium WebDriverRead 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 »

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 – 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 Automate DatePicker

Overview: We already have seen automating below complex controls. JQuery Slider JQuery Sortable In this article, we will see how we could automate Calendar / DatePicker. Goal: To model a wrapper element for the DatePicker / Calendar. So that user can identify the datepicker field as any other field by the locator and select any given date

Selenium WebDriver – How To Automate DatePickerRead More »

Selenium WebDriver – How To Locate WebElements from Dynamic Tables

Overview: In this article, Lets see how we could find elements from a dynamic web table when there are no proper locators. Problem Statement: I have a web application in which I have around 1800 HTML elements to deal with! It is a very heavy page. The challenge is here not only the number of elements

Selenium WebDriver – How To Locate WebElements from Dynamic TablesRead More »

Selenium WebDriver – Automating Custom Controls – JQuery Sortable Elements

We already have seen automating a custom control – JQuery Slider – in this article. I would request you to read that article first, if you have not already. We are going to see how to automate JQuery Sortable Elements in this post. Goal: To model a wrapper element for these sortable items. So that user can

Selenium WebDriver – Automating Custom Controls – JQuery Sortable ElementsRead More »

Selenium WebDriver – How To Automate JQuery Slider

Overview: As an automation engineer, you might very well know how to interact with default HTML elements like text box, radio button, image, check box etc. Selenium WebDriver considers all these elements as WebElement & provides a set of methods to play with these elements. Sometimes It adds unnecessary confusions. For ex: While working with a radio button, webdriver identifies

Selenium WebDriver – How To Automate JQuery SliderRead More »