Run export APPIUM_HOME=/tmp/some-temp-dir. If that dir exists, delete it
Run node_modules/.bin/appium driver install --source=local node_modules/@appium/fake-driver
Run node_modules/.bin/appium plugin install --source=local .
Run node_modules/.bin/appium driver list and node_modules/.bin/appium plugin list to ensure both fake and element-wait are installed
Start the appium server: node_modules/.bin/appium server -ka 800 --use-plugins=element-wait --config ./server-config.json -pa /wd/hub --plugin-element-wait-interval-between-attempts=2000
In a new terminal, run APPIUM_HOME=/tmp/some-temp-dir npm run test-e2e
In the Appium server terminal, grep the log output for the cliArgs object
When you call super() without arguments, no arguments are passed into the parent constructor, therefore this.cliArgs won't get set. Your plugin, however, should receive cliArgs as the second parameter in its constructor.
To test this:
npm ci
in the working copyexport APPIUM_HOME=/tmp/some-temp-dir
. If that dir exists, delete itnode_modules/.bin/appium driver install --source=local node_modules/@appium/fake-driver
node_modules/.bin/appium plugin install --source=local .
node_modules/.bin/appium driver list
andnode_modules/.bin/appium plugin list
to ensure bothfake
andelement-wait
are installedappium
server:node_modules/.bin/appium server -ka 800 --use-plugins=element-wait --config ./server-config.json -pa /wd/hub --plugin-element-wait-interval-between-attempts=2000
APPIUM_HOME=/tmp/some-temp-dir npm run test-e2e
When you call
super()
without arguments, no arguments are passed into the parent constructor, thereforethis.cliArgs
won't get set. Your plugin, however, should receivecliArgs
as the second parameter in its constructor.