INNER CODE UNIT · Python
case
codeskyblue/uiautodev · uiautodev/cli.py:105
def case():
from uiautodev.case import run
run()
@cli.command(help="COMMAND: " + ", ".join(c.value for c in Command))
@click.argument("command", type=Command, required=True)
@click.argument("params", required=False, nargs=-1)
def appium(command: Command, params: list[str] = None):
from uiautodev.driver.appium import AppiumProvider
from uiautodev.exceptions import AppiumDriverException
provider = AppiumProvider()
try:
run_driver_command(provider, command, params)
except AppiumDriverException as e:
print(f"Error: {e}")