MCPcopy
hub / github.com/SeleniumHQ/selenium / setContext

Method setContext

javascript/selenium-webdriver/firefox.js:636–638  ·  view source on GitHub ↗

* Changes target context for commands between chrome- and content. * * Changing the current context has a stateful impact on all subsequent * commands. The Context.CONTENT context has normal web * platform document permissions, as if you would evaluate arbitrary * JavaScript.

(ctx)

Source from the content-addressed store, hash-verified

634 * @param {!Promise<void>} ctx The context to switch to.
635 */
636 setContext(ctx) {
637 return this.execute(new command.Command(ExtensionCommand.SET_CONTEXT).setParameter('context', ctx))
638 }
639
640 /**
641 * Installs a new addon with the current session. This function will return an

Callers

nothing calls this directly

Calls 2

setParameterMethod · 0.80
executeMethod · 0.65

Tested by

no test coverage detected