How to start appium node as Selenium Grid node

Selenium grid tool is one of tools of Selenium suite. This tool helpful to distribute automation test scripts on multiple environments(Cross browser, cross platform) run parallel or sequently.

Appium is mobile testing tool based on Selenium platform, so it’s support Selenium grid.

This block will be described how to configure it.



  1. Start Android Emulator (I’m using Genymotion to create AVD)
  2. Get device name via adb command line <adb devices>
  3. Start selenium Grid Hub:

java -jar selenium-server-standalone-2.53.1.jar -role hub


4. Create node config json file to define Grid node and save as android_node.json:

“deviceName”: “”,
“browserName”: “Browser”,
“maxInstances”: 1,
“proxy”: “org.openqa.grid.selenium.proxy.DefaultRemoteProxy”,
“host”: “”,
“port”: “4723”,
“maxSession”: 1,
“register”: true,
“registerCycle”: 5000,
“hubPort”: “4444”,
“hubHost”: “localhost”

5. Start appium node

appium –nodeconfig android_node.json


then in hub command show:


5. Create java script to run :

public class Sample {


public static void main(String[] args) throws MalformedURLException {

DesiredCapabilities caps = new DesiredCapabilities();

caps.setCapability(“platformName”, “Android”);

caps.setCapability(“platformVersion”, “5.1”);

caps.setCapability(“deviceName”, “”);

caps.setCapability(“app”, “”);

caps.setCapability(“browserName”, “Browser”);

driver = new AndroidDriver<>(new URL(“http://localhost:4444/wd/hub&#8221;), caps);

driver.manage().timeouts().implicitlyWait(80, TimeUnit.SECONDS);






Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.