Skip to content

Commit

Permalink
🐛 Fix issue when creating iOS simulator without device'
Browse files Browse the repository at this point in the history
  • Loading branch information
astariul committed Apr 9, 2024
1 parent 63ba098 commit ea274dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kebbie/emulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def __init__(
if self.platform == IOS:
capabilities["deviceName"] = ios_name
capabilities["platformVersion"] = ios_platform
capabilities["wdaLocalPort"] = 8000 + device
capabilities["wdaLocalPort"] = 8000 + (device if device is not None else 0)
if self.platform == ANDROID and device is not None:
capabilities["udid"] = device
self.driver = webdriver.Remote(f"{host}:{port}", capabilities)
Expand Down

0 comments on commit ea274dc

Please sign in to comment.