Skip to main content

[Windows] Find Elements

Description

Find elements by using the locator value of the given Windows object.

Keyword name: findElements

Parameters

Parameter Parameter TypeRequiredDescription
windowsObjectWindowsTestObjectYesAn object describing the locator and locator strategy to find a Windows element.

Returns

Parameter TypeDescription
(List) WebElementThe found elements in list form.

Example

List<WebElement> foundElements = Windows.findElements(findWindowsObject('Object Repository/Notepad/Edit'))
println "Found " + foundElements.size() + " element(s)"
println "The First found element said: " + foundElements.get(0).getText()
Was this page helpful?