Convert RemoteWebElement to TestObject

Hi there,

I used following code to get list of RemoteWebElements that match a css class.

` protected List GetMultipleObjectsByXPath(String xpathValue){

	WebDriver driver = DriverFactory.getWebDriver();
	
	
	return driver.findElements(
		
		By.xpath(xpathValue)
		
	);


}`

Now how do i convert these WebElements to TestObjects so i can call WebUI related functions on them.

Thanks

1 Like