Skip to main content


Finds an element from page using a selector and it's type. The search for the element starts from the given elemId. An error is thrown if element is not found.

findElementFromElement(elemId, using, by)
# Or
findElementFromElement(elemId, using, by, noWait)


  • elemId: Element that must be the parent of the desired element. Search for the element starts from here.
  • 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 the element to be found on page. See details of noWait.


  • Unique elementId that identifies a page element.


opener = findElementFromElement(findElement('main', by.role), 'Open File', by.ariaLabel)# opener is the elementId