Appium Service
Handling the Appium server is out of scope of the actual WebdriverIO project. This service helps you to run the Appium server seamlessly when running tests with the WDIO testrunner. It starts the Appium Server in a child process.
#
InstallationThe easiest way is to keep @wdio/appium-service
as a devDependency in your package.json
.
You can simple do it by:
Instructions on how to install WebdriverIO
can be found here.
#
ConfigurationIn order to use the service you need to add appium
to your service array:
#
OptionsThe following options can be added to the wdio.conf.js file. To define options for the service you need to add the service to the services
list in the following way:
#
logPathPath where all logs from the Appium server should be stored.
Type: String
Example:
#
commandTo use your own installation of Appium, e.g. globally installed, specify the command which should be started.
Type: String
Example:
#
argsMap of arguments for the Appium server, passed directly to appium
.
See the documentation for possible arguments.
The arguments should be supplied in lower camel case, so --pre-launch true
becomes preLaunch: true
or passed as an array.
Type: Object
or Array
Default: {}
Example:
For more information on WebdriverIO see the homepage.