Skip to content

Commit

Permalink
add support for [email protected] (#29)
Browse files Browse the repository at this point in the history
* add more traces when appium version not match
* support for appium v3 python lib
  • Loading branch information
jupe authored Oct 10, 2023
1 parent de68a8a commit 2e15e93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stf_appium_client/AppiumServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 2e15e93

Please sign in to comment.