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

Function appium_command

test/unit/helper/test_helper.py:31–41  ·  view source on GitHub ↗

Return a command of Appium Returns: str: A string of command URL

(command: str)

Source from the content-addressed store, hash-verified

29
30
31def appium_command(command: str) -> str:
32 """Return a command of Appium
33
34 Returns:
35 str: A string of command URL
36 """
37 return (
38 f'{SERVER_URL_BASE}{command}'
39 if SERVER_URL_BASE.endswith('/') or command.startswith('/')
40 else f'{SERVER_URL_BASE}/{command}'
41 )
42
43
44def android_w3c_driver() -> 'WebDriver':

Calls

no outgoing calls

Tested by

no test coverage detected