How to Use Object Repository in Xml format In Selenium Webdriver


You can use XML as object repository like 
 And you can use the code for retrieve the objects from xml below is the code:
 And you can use as
WebDriver d = new FirefoxDriver();
d.get(objRepository(url));
d.findelement(by.name(objRepository(search_TxtFld)).sendkeys("test");
d.findelement(by.name(search_TxtFld(submt)).click();

Comments

Popular posts from this blog

Testing Webservice with SoapUI Having Windows Authentication

How to Uncheck All checkboxes Using Cucumber/Capybara