What is Object Repository in Automation Testing?
I'm new with Selenium. Can you please explain What is Object Repository in Automation?
Object Repository is a centralized location where we can store objects information, it acts as interface between Test script and application in order to identify the objects during the execution.
We always recommend using external file for object repository rather than hard coding the objects and its properties directly into our code. If you are asking me why this is?
Reason is as it reduces the maintenance effort and provides positive ROI, for example say any of the object properties change within our application under test, we can easily change it in external object repository file, rather than searching and doing updates for that object individually in the code.
EX: we use a .properties file in Java