Implement new TestObject(WebElement)

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{ TestObject(e))
1 Like

or even better would be findTestObjects() that will return list of anonymouse test objects based on definition in OR

Any solution to this problem? This is a good suggestion