Skip to content

Easy way to register an Appium server as a node in Selenium 4 Grid

Notifications You must be signed in to change notification settings

dlenroc/appium-grid-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Appium Grid Plugin · NPM Version Node.js Version

A plugin for registering Appium as a node in Selenium Grid 4.

Installation

appium plugin install --source npm @dlenroc/appium-grid-plugin

Parameters

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)

Usage

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>"
  }'

About

Easy way to register an Appium server as a node in Selenium 4 Grid

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published