Skip to main content
Version: Next

.waitForElement()

Wait for A SINGLE specified element to appear and returns them as an array

Returns: WebElementPromise - Returns a WebElementPromise if found;

ParamTypeDescription
strategystring'id', 'name', 'className', 'xpath', 'css', 'tagName', 'linkText', 'partialLinkText', 'accessibilityId'
locatorstringvalue of element to search, corresponding to locator strategy