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
Use ‘findElements’ from WebUiCommonHelper class and pass in the test object from Object Repository:WebUiCommonHelper.findWebElements(findTestObject('Object Repository/Page_AppointmentConfirmation/lbl_Comment'), 30)
Use ‘findElements’ from WebUiCommonHelper class and pass in the test object from Object Repository:WebUiCommonHelper.findWebElements(findTestObject('Object Repository/Page_AppointmentConfirmation/lbl_Comment'), 30)
I just wanted to know if there is a way to store a list of objects using something like “findTestObjects” instead of just one at a time? I am just trying to avoid declaring one testobject variable for each object and instead use an arraylist. Thanks to let me know if that is a possibility
I think you’ve discovered (like me) that the Test Objects and the Repository don’t scale all that well…
Perhaps you’d benefit from writing your own Test Objects, live, in memory, and stop dealing with the OR. If so, you might find this discussion helpful: