findElementsFromElement
Finds multiple elements from page using a selector and it's type. The search for the element starts from the given elemId. An empty list is returned when no element is found.
findElementsFromElement(elemId, using, by)
# Or
findElementsFromElement(elemId, using, by, noWait)Parameters#
elemId: Element that must be the common parent of desired elements. Search for elements starts from here.using:stringselector used to search element. See details of using.by:byconstant. The type of selector. See details of by.noWait:booleanindicating whether to wait for at least one element to be found on page. See details of noWait.
Returns#
listof uniqueelementIds asstring
Example#
allAddresses = findElementsFromElement(findElement('main', by.role), 'address', by.testId)# allAddresses is a `list` of address elements