diff --git a/stf_appium_client/AppiumServer.py b/stf_appium_client/AppiumServer.py index f047210..a3debfa 100644 --- a/stf_appium_client/AppiumServer.py +++ b/stf_appium_client/AppiumServer.py @@ -28,9 +28,9 @@ def get_api_path(self) -> str: assert self.service.is_running, 'Appium is not running' if version.startswith("1."): return f'http://127.0.0.1:{self.port}/wd/hub' - elif version.startswith("2."): + elif version.startswith("2.") or version.startswith("3."): return f'http://127.0.0.1:{self.port}' - raise AssertionError('appium version not supported') + raise AssertionError(f'appium version not supported {version}') def start(self): assert not self.service.is_running, 'Appium already running'