problems connecting to the server

213 views
Skip to first unread message

Christopher Tang

unread,
Sep 29, 2014, 10:53:10 PM9/29/14
to ios-d...@googlegroups.com

Hi, I am having difficulty with executing a test with my driver.

1) I start my server with the following (grid does not start as I am getting kicked out… for another thread)

java -jar ios-server-standalone-0.6.6-SNAPSHOT.jar -port 1111


2) I launch a test from the respective directory


3) The logs dump the following:

The server cannot run Capabilities [{platform=MAC, cssSelectorsEnabled=false, CFBundleIdentifier=com.apple.mobilesafari, javascriptEnabled=true, nativeEvents=false, locale=en_GB, CFBundleName=Safari, variation=Retina4, device=iphone, rotatable=false, takesScreenshot=false, sdkVersion=7.1, version=}] at the moment.org.uiautomation.ios.application.APPIOSApplication cannot be cast to org.uiautomation.ios.application.IPAApplication

Build info: version: 'unknown', revision: 'unknown', time: 'unknown'

System info: host: '<hidden for privacy>', ip: '<hidden for privacy>', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.5', java.version: '1.7.0_67'

Driver info: driver.version: unknown

Build info: version: 'unknown', revision: 'unknown', time: 'unknown'

System info: host: '<hidden for privacy>', ip: '<hidden for privacy>', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.5', java.version: '1.7.0_67'

Driver info: driver.version: unknown (org.openqa.selenium.SessionNotCreatedException) (Selenium::WebDriver::Error::WebDriverError)

[remote server] org.uiautomation.ios.command.uiautomation.NewSessionNHandler(NewSessionNHandler.java):100:in `safeStart'


Please Advise as to what root cause may be

Chris

owenfl...@gmail.com

unread,
Nov 11, 2014, 10:07:36 AM11/11/14
to ios-d...@googlegroups.com
I am also getting this with the following installs
OS X SDKs:

- OS X 10.9 -sdk macosx10.9
- OS X 10.10 -sdk macosx10.10

iOS SDKs:

- iOS 8.1 -sdk iphoneos8.1

iOS Simulator SDKs:

- Simulator - iOS 8.1 -sdk iphonesimulator8.1

owenfl...@gmail.com

unread,
Nov 11, 2014, 10:48:04 AM11/11/14
to ios-d...@googlegroups.com, owenfl...@gmail.com
I fixed this by adding the following capability
cap.setCapability("simulator", true);
Reply all
Reply to author
Forward
0 new messages