* @private * @param {CodeceptJS.LocatorOrString} locator * @returns {string}
(locator)
| 766 | * @returns {string} |
| 767 | */ |
| 768 | function convertToSubSelector(locator) { |
| 769 | const xpath = new Locator(locator, 'css').toXPath() |
| 770 | if (isXPathStartingWithRoundBrackets(xpath)) { |
| 771 | throw new Error('XPath with round brackets is not possible here! ' + 'May be a nested locator with at() last() or first() causes this error.') |
| 772 | } |
| 773 | return removePrefix(xpath) |
| 774 | } |
no test coverage detected