* Grab Locator if called within Context * * @param {*} locator
(locator)
| 2686 | * @param {*} locator |
| 2687 | */ |
| 2688 | _contextLocator(locator) { |
| 2689 | const locatorObj = new Locator(locator, 'css') |
| 2690 | |
| 2691 | locator = buildLocatorString(locatorObj) |
| 2692 | |
| 2693 | if (this.contextLocator) { |
| 2694 | const contextLocatorObj = new Locator(this.contextLocator, 'css') |
| 2695 | const contextLocator = buildLocatorString(contextLocatorObj) |
| 2696 | locator = `${contextLocator} >> ${locator}` |
| 2697 | } |
| 2698 | |
| 2699 | return locator |
| 2700 | } |
| 2701 | |
| 2702 | /** |
| 2703 | * {{> grabTextFrom }} |
no test coverage detected