MCPcopy Index your code
hub / github.com/appium/python-client / _add_commands

Method _add_commands

appium/webdriver/extensions/keyboard.py:147–168  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

145 return self
146
147 def _add_commands(self) -> None:
148 self.command_executor.add_command(
149 Command.HIDE_KEYBOARD,
150 'POST',
151 '/session/$sessionId/appium/device/hide_keyboard',
152 )
153 self.command_executor.add_command(
154 Command.IS_KEYBOARD_SHOWN,
155 'GET',
156 '/session/$sessionId/appium/device/is_keyboard_shown',
157 )
158 self.command_executor.add_command(Command.KEY_EVENT, 'POST', '/session/$sessionId/appium/device/keyevent')
159 self.command_executor.add_command(
160 Command.PRESS_KEYCODE,
161 'POST',
162 '/session/$sessionId/appium/device/press_keycode',
163 )
164 self.command_executor.add_command(
165 Command.LONG_PRESS_KEYCODE,
166 'POST',
167 '/session/$sessionId/appium/device/long_press_keycode',
168 )

Callers

nothing calls this directly

Calls 1

add_commandMethod · 0.45

Tested by

no test coverage detected