A plugin for registering Appium as a node in Selenium Grid 4.
appium plugin install --source npm @dlenroc/appium-grid-plugin
Parameter | Default | Description |
---|---|---|
--plugin-grid-external-url |
http://127.0.0.1:4723 |
Node external URL |
--plugin-grid-publish-events |
tcp://127.0.0.1:4443 |
Grid ZeroMQ PUB socket |
--plugin-grid-stereotype |
{} |
Node stereotype(s) |
--plugin-grid-heartbeat-period |
60000 |
Heartbeat period (ms) |
--plugin-grid-session-timeout |
300000 |
Session timeout (ms) |
Start the Selenium Grid Hub
selenium-server hub \
--port 4444 \
--host 127.0.0.1 \
--publish-events 'tcp://127.0.0.1:4442' \
--subscribe-events 'tcp://127.0.0.1:4443'
Start as many Appium nodes as needed
npx appium \
--use-plugins grid \
--plugin-grid-external-url 'http://127.0.0.1:4723' \
--plugin-grid-publish-events 'tcp://127.0.0.1:4443' \
--plugin-grid-stereotype '{ "platformName": "roku" }' \
--default-capabilities '{
"appium:automationName": "roku",
"appium:ip": "<device-ip>",
"appium:password": "<devmode-password>"
}'