Hey Team,
I need to iterate on a list css locator which I put in the section method css. Can you please share the code to write it. I have successfully done for the Basic one using code
TestObject to = findTestObject(’ ')
WebDriver driver = DriverFactory.getWebDriver()
List list = driver.findElements(By.className(to.findPropertyValue(‘class’)))
println(list.size());
for(int i=0; i<list.size(); i++)
{
println(list.get(i).text);
}
Can you please share the code how to access the list css locator if I put it in the selection method e.g. tr[ng-repeat] it has 4 values.
Thanks,
Nimit