* @private * Checks if `locator` is XPath locator * @param {string} locator * * @returns {boolean}
(locator)
| 708 | * @returns {boolean} |
| 709 | */ |
| 710 | function isXPath(locator) { |
| 711 | const trimmed = locator.replace(/^\(+/, '').substr(0, 2) |
| 712 | return trimmed === '//' || trimmed === './' |
| 713 | } |
| 714 | |
| 715 | /** |
| 716 | * @private |
no outgoing calls
no test coverage detected