Skip to main content

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)

Parameters#

  • using: 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.

Returns#

  • list of unique elementIds as string

Example#

allAddresses = findElements('address', by.testId)# allAddresses is a `list` of address elements