When is a site ready for test automation?

Photo by Samantha Gades on Unsplash

Short answer: the site should be designed in a way that allows easy and efficient test automation to be implemented.

Simplicity always helps.

The long answer follows.

The majority of times I was involved in a web test automation project, implementing test automation was not easy because the site design was not appropriate. In other words, the site was implemented without thinking on how test automation will be done.

When is the site design not appropriate?

  1. The site is built with 3rd party libraries by dragging and dropping components on a page and then customizing them. There was no way of adding custom id attributes to HTML elements in these cases. Which lead to using very bad locators for finding elements.

This is not a complete list.

I just mentioned common things that I see often in the projects that I work on.

If you know of anything else that should be added to the list, please let me know.

Blogs about Selenium and Java at https://seleniumjava.com.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store