(fn, handle, ...args)
| 683 | } |
| 684 | |
| 685 | async _evaluateHandeInContext(fn, handle, ...args) { |
| 686 | // If handle is provided, evaluate directly on it to avoid "JavaScript world" errors |
| 687 | if (handle) { |
| 688 | return handle.evaluate(fn, ...args) |
| 689 | } |
| 690 | // Otherwise use the context |
| 691 | const context = await this._getContext() |
| 692 | return context.evaluateHandle(fn, ...args) |
| 693 | } |
| 694 | |
| 695 | async _withinBegin(locator) { |
| 696 | if (this.withinLocator) { |
no test coverage detected