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

Method _add_commands

appium/webdriver/extensions/location.py:90–98  ·  view source on GitHub ↗

Add location endpoints. They are not int w3c spec.

(self)

Source from the content-addressed store, hash-verified

88 return self.execute(Command.GET_LOCATION)['value']
89
90 def _add_commands(self) -> None:
91 """Add location endpoints. They are not int w3c spec."""
92 self.command_executor.add_command(
93 Command.TOGGLE_LOCATION_SERVICES,
94 'POST',
95 '/session/$sessionId/appium/device/toggle_location_services',
96 )
97 self.command_executor.add_command(Command.GET_LOCATION, 'GET', '/session/$sessionId/location')
98 self.command_executor.add_command(Command.SET_LOCATION, 'POST', '/session/$sessionId/location')

Callers

nothing calls this directly

Calls 1

add_commandMethod · 0.45

Tested by

no test coverage detected