How to pass the element in object repository to find elements code

Can someone please help me on how to pass the element from the object repository to the find elements code that am using in my custom keyword. I want to pass the element locator as an argument so I can reuse it... Here is my code

import org.openqa.selenium.By
import org.openqa.selenium.WebDriver
import org.openqa.selenium.WebElement

WebDriver driver = DriverFactory.getWebDriver()



I want to send the test object from object repository in place of "elementid" in the above line.. Please help!!



Sign In or Register to comment.