MCPcopy
hub / github.com/appium/python-client / contexts

Method contexts

appium/webdriver/extensions/context.py:24–34  ·  view source on GitHub ↗

Returns the contexts within the current session. Usage: driver.contexts Return: :obj:`list` of :obj:`str`: The contexts within the current session

(self)

Source from the content-addressed store, hash-verified

22class Context(CanExecuteCommands):
23 @property
24 def contexts(self) -> List[str]:
25 """Returns the contexts within the current session.
26
27 Usage:
28 driver.contexts
29
30 Return:
31 :obj:`list` of :obj:`str`: The contexts within the current session
32
33 """
34 return self.execute(Command.CONTEXTS)['value']
35
36 @property
37 def current_context(self) -> str:

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected