Skip to content
Advertisement

How to stop and start Appium server programmatically using Java?

How can I perform launching and stopping my server using Java code? Currently I am doing this process manually.

Advertisement

Answer

There are 3 ways to achieve the scenario.
1)Using AppiumDriverLocalService

JavaScript


2)Using Appium.js with Node.exe

JavaScript


3)Start Appium server using Command Prompt

JavaScript

I found it helpful.Hope it helps. Source: http://www.automationtestinghub.com/3-ways-to-start-appium-server-from-java/

Advertisement