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

Method set_context

py/selenium/webdriver/firefox/webdriver.py:74–80  ·  view source on GitHub ↗

Sets the context that Selenium commands are running in. Args: context: Context to set, should be one of CONTEXT_CHROME or CONTEXT_CONTENT.

(self, context)

Source from the content-addressed store, hash-verified

72 raise
73
74 def set_context(self, context) -> None:
75 """Sets the context that Selenium commands are running in.
76
77 Args:
78 context: Context to set, should be one of CONTEXT_CHROME or CONTEXT_CONTENT.
79 """
80 self.execute("SET_CONTEXT", {"context": context})
81
82 @contextmanager
83 def context(self, context):

Callers 2

contextMethod · 0.95

Calls 1

executeMethod · 0.95

Tested by 1