Use Many Small Classes Instead of Few Large Ones

Photo by Ross Sneddon on Unsplash

One of the things that makes Selenium code better is having many small, single-purpose classes instead of fewer large, multiple purpose ones.

It is common for testers that just started Selenium automation to use utility classes as containers for many, unrelated common methods.

This leads to less duplicated code and shorter tests.

--

--

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