Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion airtest/core/ios/ios.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,13 @@ def __init__(self, addr=DEFAULT_ADDR, cap_method=CAP_METHOD.MJPEG, mjpeg_port=No
self.udid = udid
else:
self.udid = parsed
self.driver = wda.USBClient(udid=self.udid, port=8100, wda_bundle_id=self.wda_bundle_id)
try:
self.driver = wda.USBClient(udid=self.udid, port=8100, wda_bundle_id=self.wda_bundle_id)
except Exception as e:
# windows connect ios devices fail:USBClient.__init__() got an unexpected keyword argument 'wda_bundle_id'
LOGGING.warning("USBClient.__init__() error: {msg}".format(msg=e))
self.driver = wda.USBClient(udid=self.udid, port=8100)

# Record device's width and height.
self._size = {'width': None, 'height': None}
self._current_orientation = None
Expand Down