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

Function evaluateInFrame

lib/helper/extras/richTextEditor.js:78–83  ·  view source on GitHub ↗
(helper, body, fn)

Source from the content-addressed store, hash-verified

76}
77
78async function evaluateInFrame(helper, body, fn) {
79 if (body.helperType === 'webdriver') {
80 return helper.executeScript(fn)
81 }
82 return body.element.evaluate(fn)
83}
84
85function focusMarkedInFrameScript() {
86 const el = document.querySelector('[data-codeceptjs-rte-target]') || document.body

Callers 1

fillRichEditorFunction · 0.85

Calls 2

evaluateMethod · 0.80
executeScriptMethod · 0.45

Tested by

no test coverage detected