I’ve been trying to get it running on real device for about 3 days now at this stage. have Appium 1.6Beta, xcode 8 GM and devices with ios 9.3.2 and 10.0, and it gets as far as putting the WebDriverAgentRunner onto the devices and then sits there waiting for them to start :
[XCUITest] Waiting fo WebDriverAgent to start on device
but it never does.
If I execute the command which it prints out just prior ( xcodebuild -project … -scheme WebDriverAgentRunner - sdk iphoneos -destination… test) from a command line, it works fine, and I see the lines
ServerURLHere->http://…<-ServerURLHere
Listening on USB
How are you initialising the application? I have yet to test on a real device but thats next on the list so I will let you know what happens.
I use a C# Mobile Framework which we have written in-house to support our mobile development and test automation, this hasn’t had an issue with the simulator (As far as launching the application) but if you take a look at https://github.com/appium/appium-xcuitest-driver there are some external dependencies for getting things running on a real device.
Let me know how you get on and I will do the same in due course.
Hi Christopher,
yeah i’ve got those dependencies all installed, as I said I can see the WebDriverAgent being loaded to the device, it starts up and then goes into the background.
I’m using the python client, which works fine with the same appium version etc using android, but it’s just the ios using xcuitest driver which seems to be getting stuck, and I can’t figure out why.
Ken
I’m not sure it’s even getting far enough for that to be a problem; appium is never seeing the ‘ServerURLHere’ line to indicate that webdriveragent has started, but when i run the same (I assume - I copy it from the output of appium) command directly from the command line, I do see it in the log.
I’ll try copy the 2 log scenarios here in a short while
3 logs in that, first one is the xcodebuild log output , 2nd is the output from the console of appium and 3rd is when i run the same command from the commad line and it appears to get into the state that appium is waiting for
Thanks for sharing.
Continuing further, are you able to get control of the elements on your app screen? Like, click, tap, sendkey, setvale events…
Also, apart from, driver.getPAgeSource(), are you able to use any other inspection means?
I know it’s been some time since the initial post, but I will most likley be taking the jump this week to uplift appium and my project. I have been keeping an eye on the github commit’s and believe it’s time!
If anyone has any tip’s or warnings please let me know!
Please help me out
In my case it is getting stuck on
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading…
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading…
My Developers just gave me the first build of an iOS app that was built with Xcode 8 (8.2.1 to be exact). To my surprise, my Appium scripts are working on my iPhone 6 running iOS 9.3. I thought I’ve read on this forum that if you build the app with XCode 8.x, the ‘old’ locator strategies won’t work, and the Appium Server 1.6.x is required along with the new locator strategies.
I definitely need to move my devices to iOS 10 soon, but if I keep my phone on iOS 9.x, should my current iOS scripts continue to work with Appium Server 1.5.3, even though the app was built with Xcode 8.x?