Testing Angular Applications with Selenium Java

A non-standard approach to automating Angular app testing

Likitha Lokesh
Slalom Build

--

If you are looking for the recommended tool to automate your Angular/AngularJS applications, then this might not be the place for you — I am certain that the first recommendation on your Google search results would be of Protractor or Webdriver.io.

However, while the Selenium WebDriver is not the most popular choice to automate angular applications, it is still the most widely used test framework around the globe with extensive support in online support forums.

If you are looking for solutions to the challenges of automating asynchronous Angular applications using the Selenium WebDriver framework in Java, then you are at the right place… even if not feel free to stick around for some fun reading!

Page Object Factory/Model as a design pattern

To begin with, I would recommend using a design pattern to automate the web application. I opted for the Page Factory Model, which is an optimized version of the Page Object Model — you are free to choose the latter. Under this model, for each web page in the application, there should be a corresponding page class.

--

--

Likitha Lokesh
Slalom Build

Quality Architect for Slalom Chicago, DevOps enthusiast