[Windows] Find Elements
Description​
Find elements by using the locator value of the given Windows object.
Keyword name: findElements
Parameters​
| Parameter | Parameter Type | Required | Description |
|---|---|---|---|
windowsObject | WindowsTestObject | Yes | An object describing the locator and locator strategy to find a Windows element. |
Returns​
| Parameter Type | Description |
|---|---|
(List) WebElement | The 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()