please implement ability to create new TestObject let’s call them anonymous - since they are not part of OR by using WebElement found by WebDriver.findeElment/s
usage - wide spectrum of use cases - mainly for bulk process of found elements
something like:
def example(TestObject to) {
WDriver wd = DriverFactory.getWebDriver()
List<WebElement> elements = wd.findElements(By.xpath(to.findPropertyValue("xpath")))
for e in elements{
WebUI.click(new TestObject(e))
}
}