* @param {CodeceptJS.LocatorOrString} locator * @returns {Locator}
(locator)
| 253 | * @returns {Locator} |
| 254 | */ |
| 255 | withChild(locator) { |
| 256 | const xpath = sprintf('%s[./child::%s]', this.toXPath(), convertToSubSelector(locator)) |
| 257 | return new Locator({ xpath }) |
| 258 | } |
| 259 | |
| 260 | /** |
| 261 | * @param {CodeceptJS.LocatorOrString} locator |
no test coverage detected