MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / setContext

Method setContext

javascript/selenium-webdriver/firefox.js:637–639  ·  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

635 * @param {!Promise<void>} ctx The context to switch to.
636 */
637 setContext(ctx) {
638 return this.execute(new command.Command(ExtensionCommand.SET_CONTEXT).setParameter('context', ctx))
639 }
640
641 /**
642 * 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