appium-sikuli-driver
appium-sikuli-driver copied to clipboard
Starting AppiumServer within code
there is no need to start the appium server from commandline. This PR will start the appium-server programatically.
We need to specify APPIUM_JS="/usr/local/lib/node_modules/appium/bin/appium.js" as part of the runner command, location for appium.js varies for every-user
Thank You. This is very good way if You want to run tests only locally. Let's keep it as separate branch. But in general, if You want to do it against some test cloud like Testdroid or Saucelabs then we need to specify the URL and port.
@dzaiats Makes sense.. how about keep it this way driver = new SikuppiumDriver(new URL("http://127.0.0.1:4723/wd/hub"), CapabilitiesFactory.getCapabilities());
Still you will b able to run the server from your code ?
@dzaiats ahh .. i get what your saying... if its running on the cloud then the URL and PORT would b passed as part of the appium --server-caps .. i get that :+1:
Yes, exactly. And I think that specifying of the path to the local Appium library could make issues. Especially if You have few versions of Appium. But You showed very good example of how to do it locally. Thanks!
Thank you. Your Welcome :+1: