.waitForElement()
Wait for A SINGLE specified element to appear and returns them as an array
Returns: WebElementPromise - Returns a WebElementPromise if found;
| Param | Type | Description |
|---|---|---|
| strategy | string | 'id', 'name', 'className', 'xpath', 'css', 'tagName', 'linkText', 'partialLinkText', 'accessibilityId' |
| locator | string | value of element to search, corresponding to locator strategy |