(locator)
| 616 | } |
| 617 | |
| 618 | _isCustomLocator(locator) { |
| 619 | const locatorObj = new Locator(locator) |
| 620 | if (locatorObj.isCustom()) { |
| 621 | const customLocator = this._lookupCustomLocator(locatorObj.type) |
| 622 | if (customLocator) { |
| 623 | return true |
| 624 | } |
| 625 | throw new Error('Please define "customLocatorStrategies" as an Object and the Locator Strategy as a "function".') |
| 626 | } |
| 627 | return false |
| 628 | } |
| 629 | |
| 630 | async _res(locator) { |
| 631 | const res = this._isShadowLocator(locator) || this._isCustomLocator(locator) ? await this._locate(locator) : await this.$$(withStrictLocator(locator)) |
no test coverage detected