Use ios-provider unit to add a provider that will track and manage port forwarding to the device.
Also see lib/cli/ios-device/run-wda.sh on how to run a single device.
This script is designed to set up and run WebDriverAgent on an iOS device using idb and pymobiledevice3. It also sets up port forwarding that is needed for the ios-device.
- Installed
git - Installed
idb - Installed
xcodebuild - Installed the
stfcommand from this repository (clone this repository and donpm cifollowed bynpm link) - Access to MongoDB which used by stf Note: You need to create you own provisioning profile in XCode for the WebDriverAgent project
First start WebDriverAgent Then run
stf ios-provider \
--connect-sub tcp://127.0.0.1:7114 \
--connect-push tcp://127.0.0.1:7116 \
--connect-app-dealer tcp://127.0.0.1:7112 \
--connect-dev-dealer tcp://127.0.0.1:7115 \
--screen-ws-url-pattern 'ws://localhost:<%= publicPort %>' \
--public-ip localhost \
--provider localworker \
--storage-url http://localhost:7100/Also you can use ESP32 Implementation described in this document
The device name is determined using idb list-targets.
A fork of node-usbmux is used to forward ports 9100 and 8100 from the device to the local machine.