MCPcopy
hub / github.com/codeceptjs/CodeceptJS / _evaluateHandeInContext

Method _evaluateHandeInContext

lib/helper/Puppeteer.js:685–693  ·  view source on GitHub ↗
(fn, handle, ...args)

Source from the content-addressed store, hash-verified

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) {

Callers 3

fillFieldMethod · 0.95
grabAttributeFromAllMethod · 0.95
proceedSelectFunction · 0.45

Calls 2

_getContextMethod · 0.95
evaluateMethod · 0.80

Tested by

no test coverage detected