findElements
Finds multiple elements from page using a selector and it's type. The search for the element starts from the root of document. An empty list
is returned when no element is found.
findElements(using, by)
# Or
findElements(using, by, noWait)
#
Parametersusing
:string
selector used to search element. See details of using.by
:by
constant. The type of selector. See details of by.noWait
:boolean
indicating whether to wait for at least one element to be found on page. See details of noWait.
#
Returnslist
of uniqueelementId
s asstring
#
ExampleallAddresses = findElements('address', by.testId)# allAddresses is a `list` of address elements