Thanks RamS, but my server is already on port 4726, but my tests fails because the driver is trying to use 4723. Sorry, I should have explained better in my original post.
Can u try single quote for port value instead of double quote … this is just a try
I am just guesssing it might be taking a default value as its not getting port value …
Launching Appium with command: '/Applications/Appium.app/Contents/Resources/node/bin/node' lib/server/main.js --port "4726" --command-timeout "7200" --debug-log-spacing --automation-name "Appium" --platform-name "Android" --platform-version "5.0"
info: Welcome to Appium v1.4.1 (REV ce6220829063679bcccf5724515c29569c4a16d9)
info: Appium REST http interface listener started on 0.0.0.0:4726
info: [debug] Non-default server args: {"port":4726,"platformName":"Android","platformVersion":"5.0","automationName":"Appium","defaultCommandTimeout":7200,"debugLogSpacing":true}
info: Console LogLevel: debug
There is no error log for the server, as it never connects to anything, it’s just happily sitting there oblivious to anything that’s going on!
Your java solution is similar to what we have when using Selenium::WebDriver, but I wanted to use Appium::Driver so that I can use their swiping methods.
@wreed - When I add it into caps I get the following from driver_attributes:
The start_driver method created a Selenium::WebDriver object with all of the caps that Appium::Driver was created with. I think this is the correct way to use it, but I could be wrong. The Appium Driver gives access to other methods, like set_context, which aren’t available with a normal WebDriver.
Also, I should say that it works perfectly on port 4723, I just can’t change it, which means I can’t run things in parallel.
[quote=“DavidSelby, post:13, topic:4799”]
The Appium Driver gives access to other methods, like set_context, which aren’t available with a normal WebDriver
[/quote] AndoridDriver and iOSDrievr extend from AppiumDriver, hence you get all plus additional APIs.
Looking at the source, I think that might just be for Java. In Java you do have an abstract AppiumDriver class, but in Ruby it’s a full usable driver. Thanks a lot for your help though. I think I’m just going to give up for now and find another way to do the things that the driver implements!