Appium API for dealing with iOS devices. This is mainly a rewrite of libimobiledevice in nodejs. The APIs allow Appium to talk directly to the phone over usbmuxd
More information can be found at the links below:
Note: Issue tracking for this repo has been disabled. Please use the main Appium issue tracker instead.
This module should be used over the utilities and services modules or exported classes in documents due to the complexity of iOS communication. When a new services is implemented, it should be added and made available over the services module.
utilities.getConnectedDevicesutilities.getOSVersionutilities.getDeviceTimeutilities.getDeviceNameutilities.getDeviceInfoutilities.startLockdownSessionutilities.connectPortutilities.connectPortSSLservices.startSyslogServiceservices.startWebInspectorServiceservices.startInstallationProxyServiceservices.startSimulateLocationServiceservices.startAfcServiceservices.startNotificationProxyServiceservices.startHouseArrestServiceservices.startInstrumentServiceservices.startTestmanagerdServiceservices.startMCInstallService
Xctest- Allows invoking pre-installed xctest app from iOS devices. No Xcode installation is required. This class simulates the procedure which Xcode uses to invoke xctests.
new Xctest(udid, xctestBundleId, targetBundleId, opts)udid-stringDevice udid.xctestBundleId-string- Bundle Id of xctest app on device. The app must be installed on device.targetBundleId-string- Test target bundle id.nullby default.opts- optional addition options to specific XCTestConfiguration and app launch env.conf- properties to override in XCTestConfiguration.productModuleName-string | nulltargetApplicationArguments-string[] | nulltestsToRun-string[] | nulltestsToSkip-string[] | null
env-object- key-value pairs to append in xctest app environment
xctest.start()- Start xctest process. If this method has been called before and the
stop()method has not been called, calling this again would return directly. - Throws: If xctest bundle id invalid or not installed.
- Start xctest process. If this method has been called before and the
xctest.stop()- Stop xctest process.
npm test