adspace


What is object repository? How can we create an object repository in selenium?

Answer Posted / Mahaveer Prasad

Object Repository is a data structure that stores all the reusable test objects (like web elements, page objects) for a Selenium project. It helps in reducing code duplication and improves maintainability. To create an Object Repository, you can create a class for each page of your application, and within this class define methods that return WebElements for various UI components.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Have you created any framework?

1038


Do you know how to locate a link using its text in selenium?

985


How can you fetch an attribute from an element? How to retrieve typed text from a textbox?

1197


What’s selenese?

920


what will be the first salary and what will be the hike in the salary?

929