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



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

Answer / 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

More Selenium Interview Questions

What is pom (page object model)?

1 Answers  


How you can debug the tests in selenium ide?

1 Answers  


Do you know a way to refresh the browser by using selenium?

1 Answers  


Explain what is selenium ide?

1 Answers  


How do you add check points or verification points in selenium?

1 Answers  


What are the technical limitations while using selenium rc?

1 Answers  


What are the types of listeners in testng?

1 Answers  


What is the difference between @factory and @data provider annotation?

1 Answers  


What is testng assert and list out some common assertions supported by testng?

1 Answers  


What are the advantages and disadvantages of selenium ?

1 Answers  


Explain xpath.

1 Answers  


How can we find all the links on a web page?

1 Answers  


Categories