How to use Properties Files in Selenium Automation Framework

Learn how to use properties files in Selenium Automation Framework

How to use Properties Files in Selenium Automation Framework?

What is Properties?

It is mainly used to store configuration parameters of an application. Each parameter is stored as a pair of strings i.e. both key and value are of type string.

Advantage of using Properties?

If any value changes in the properties file then we don’t need to recompile the java class

How to use Properties Files with Selenium?

  • It can be used to store all the configuration parameters like environment details, user credentials, database details, etc.… instead of hard coding it in the scripts
  • It can be used as an object repository where we can store all the elements and their identifiers


Bijan Patel
Full Stack Test Automation Expert | Selenium Framework Developer | Certified Tosca Automation Specialist | Postman | DevOps | AWS | IC Agile Certified | Trainer | Youtuber | Blogger|

Launch your GraphyLaunch your Graphy
100K+ creators trust Graphy to teach online
𝕏
QASCRIPT 2024 Privacy policy Terms of use Contact us Refund policy