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.

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

5 New Development Bounties Added

Great Success: Learning to program python and (finally) creating my first beginner python program

Types of environments found in hybrid clouds

How to upload android project in bitbucket for first time using android studio

Accessing Kafka Broker

Using portainer to manage container station

Dental Bridge Application in Stony Green #Tooth #Bridge #Specialists #Stony #Green https://t.co/Bz1p

Email Harvesting and Counter Measures

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
Alex Siminiuc

Alex Siminiuc

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

More from Medium

Test Automation: Identifying Objects in a Web Page

JMeter for Performance Testing

Telemetry and Application Insights in Testing

The 6 Principles of Test Automation