How you build object repository in your project?
Answer / Satendra
In my Selenium project, I've built the Object Repository using a combination of Page Factory and Abstract Classes. Each page (like LoginPage, HomePage, etc.) has its own abstract class that contains all the web elements for that page. The concrete classes inherit from these abstract classes, which allows us to reuse the same web elements across multiple pages.nnHere's an example of an abstract class:nn```javanpublic abstract class BasePage {n @FindBy(id = "login_button")n public WebElement loginButton;n}n```
| Is This Answer Correct ? | 0 Yes | 0 No |
Write the code for reading and writing to excel through selenium?
Tell me what is a hub in selenium grid?
List out different types of locators?
What are the advantage and features of selenium ide?
What happens if I run this command. Driver.get(“www.softwaretestingmaterial.com”) ;
What is implicit wait in selenium webdriver?
What is the main difference between the close() and quit() methods?
How do I launch the browser using webdriver?
How many types of waits in selenium?
what are the Dynamic elements in web Application?
Explain what is group test in testng?
What is the purpose of creating a reference variable- 'driver' of type webdriver instead of directly creating a firefoxdriver object or any other driver's reference in the statement webdriver driver = new firefoxdriver();?