Can't properly connect to ios-server

236 views
Skip to first unread message

Aaron Molinsky

unread,
Feb 14, 2014, 4:55:01 AM2/14/14
to ios-d...@googlegroups.com
I tried to run ios-server like this:

$ java -jar ios-server-0.6.5-jar-with-dependencies.jar -port 5555 -simulators

As a result I get this, so far so good:

18:17:519 INFO ApplicationStore.<init>  App archive folder:/Users/valmar/Downloads/applications
18:18:255 WARNING AppleLanguage.create  no isn't recognized.Please file a bug on github.You won't be able to start the app in that language.
18:18:691 WARNING AppleLanguage.create  zh_CN isn't recognized.Please file a bug on github.You won't be able to start the app in that language.
18:18:715 WARNING AppleLanguage.create  zh_TW isn't recognized.Please file a bug on github.You won't be able to start the app in that language.
18:18:774 INFO IOSServer.init  
Beta features enabled ( enabled by -beta flag ): false
Simulator enabled ( enabled by -simulators flag): true
Inspector: http://0.0.0.0:5555/inspector/
tests can access the server at http://0.0.0.0:5555/wd/hub
server status: http://0.0.0.0:5555/wd/hub/status
Connected devices: http://0.0.0.0:5555/wd/hub/devices/all
Applications: http://0.0.0.0:5555/wd/hub/applications/all
Capabilities: http://0.0.0.0:5555/wd/hub/capabilities/all
Monitoring '/Users/valmar/Downloads/applications' for new applications
Archived apps /Users/valmar/Downloads/applications
using xcode install : /Applications/Xcode.app
using IOS version 7.0
ios >= 6.0. Safari and hybrid apps are supported.
Applications :
--------------- 
CFBundleName=Safari,CFBundleVersion=9537.53
2014-02-14 10:18:18.774:INFO::jetty-7.x.y-SNAPSHOT
2014-02-14 10:18:18.870:INFO::Started SelectChann...@0.0.0.0:5555

Then I start the following Selenium test:

public static void main(String[] args) throws Exception {
IOSCapabilities caps = IOSCapabilities.iphone("Safari", "9537.53");
caps.setCapability(IOSCapabilities.SIMULATOR, true);
RemoteWebDriver driver = new RemoteWebDriver(new URL("http://0.0.0.0:5555/wd/hub"), caps);
driver.get("http://www.hse24.de");
System.out.println(driver.getTitle());
driver.quit();
}
 

And I see this in server console output:

46:49:567 WARNING DefaultCommandListener.stderr  2014-02-14 10:46:49.566 instruments[3011:507] -[__NSCFConstantString isEqualToNumber:]: unrecognized selector sent to instance 0x7fff7a931db0
46:49:568 WARNING DefaultCommandListener.stderr  2014-02-14 10:46:49.567 instruments[3011:507] Exception during preparation: -[__NSCFConstantString isEqualToNumber:]: unrecognized selector sent to instance 0x7fff7a931db0
46:49:571 WARNING DefaultCommandListener.stderr  2014-02-14 10:46:49.569 instruments[3011:507] *** Assertion failure in -[UIAInstrument _startAgentForApp:withPID:], /SourceCache/AutomationInstrument/AutomationInstrument-1000/Classes/UIAInstrument-Simulator.m:116
46:49:572 WARNING DefaultCommandListener.stderr  2014-02-14 10:46:49.570 instruments[3011:507] Automation Instrument ran into an exception while trying to run the script.  NSInternalInconsistencyException

 And the Java application freezes and won't terminate.

If I then restart the Java application, I see this exception:

Begin
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: {simulator=true, timeHack=false, variation=Regular, locale=en_GB, CFBundleName=Safari, device=iphone, CFBundleVersion=9537.53, language=en}not available. Available are [Simulator]
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51'
Driver info: driver.version: unknown
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51'
Driver info: driver.version: unknown
Command duration or timeout: 594 milliseconds
Build info: version: '2.39.0', revision: 'ff23eac', time: '2013-12-16 16:12:12'
System info: host: 'tacbook13.local', ip: '172.20.10.4', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:193)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:216)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:111)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:129)
at MobSelTest.main(MobSelTest.java:24)
Caused by: org.openqa.selenium.SessionNotCreatedException: {simulator=true, timeHack=false, variation=Regular, locale=en_GB, CFBundleName=Safari, device=iphone, CFBundleVersion=9537.53, language=en}not available. Available are [Simulator]
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51'
Driver info: driver.version: unknown
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51'
Driver info: driver.version: unknown
Build info: version: '2.39.0', revision: 'ff23eac', time: '2013-12-16 16:12:12'
System info: host: 'tacbook13.local', ip: '172.20.10.4', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51'
Driver info: driver.version: unknown
at org.uiautomation.ios.server.command.uiautomation.NewSessionNHandler.handle(NewSessionNHandler.java:54)
at org.uiautomation.ios.server.command.BaseCommandHandler.handleAndRunDecorators(BaseCommandHandler.java:86)
at org.uiautomation.ios.server.servlet.IOSServlet.getResponse(IOSServlet.java:144)
at org.uiautomation.ios.server.servlet.IOSServlet.process(IOSServlet.java:85)
at org.uiautomation.ios.server.servlet.IOSServlet.doPost(IOSServlet.java:57)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:533)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:475)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:920)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:856)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:47)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
at org.eclipse.jetty.server.Server.handle(Server.java:352)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1066)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
at java.lang.Thread.run(Thread.java:744)
Server console output:

48:37:227 WARNING IOSServlet.getResponse  360ms. POST /session

 So, for some reason I suspect that ios-server has trouble with incoming connections and handling internal sessions because, if I manually call http://0.0.0.0:5555/wd/hub via a web browser, I see:

{"message":"cannot find command for GET, /\nBuild info: version: 'unknown', revision: 'unknown', time: 'unknown'\nSystem info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51'\nDriver info: driver.version: unknown","screen":null,"class":"org.openqa.selenium.WebDriverException","stackTrace":[{"fileName":"WebDriverLikeCommand.java","lineNumber":311,"className":"org.uiautomation.ios.communication.WebDriverLikeCommand","methodName":"getCommand"},{"fileName":"WebDriverLikeRequest.java","lineNumber":115,"className":"org.uiautomation.ios.communication.WebDriverLikeRequest","methodName":"getGenericCommand"},{"fileName":"WebDriverLikeRequest.java","lineNumber":119,"className":"org.uiautomation.ios.communication.WebDriverLikeRequest","methodName":"getVariableValue"},{"fileName":"WebDriverLikeRequest.java","lineNumber":132,"className":"org.uiautomation.ios.communication.WebDriverLikeRequest","methodName":"getSession"},{"fileName":"IOSServlet.java","lineNumber":150,"className":"org.uiautomation.ios.server.servlet.IOSServlet","methodName":"getResponse"},{"fileName":"IOSServlet.java","lineNumber":85,"className":"org.uiautomation.ios.server.servlet.IOSServlet","methodName":"process"},{"fileName":"IOSServlet.java","lineNumber":46,"className":"org.uiautomation.ios.server.servlet.IOSServlet","methodName":"doGet"},{"fileName":"HttpServlet.java","lineNumber":707,"className":"javax.servlet.http.HttpServlet","methodName":"service"},{"fileName":"HttpServlet.java","lineNumber":820,"className":"javax.servlet.http.HttpServlet","methodName":"service"},{"fileName":"ServletHolder.java","lineNumber":533,"className":"org.eclipse.jetty.servlet.ServletHolder","methodName":"handle"},{"fileName":"ServletHandler.java","lineNumber":475,"className":"org.eclipse.jetty.servlet.ServletHandler","methodName":"doHandle"},{"fileName":"SessionHandler.java","lineNumber":224,"className":"org.eclipse.jetty.server.session.SessionHandler","methodName":"doHandle"},{"fileName":"ContextHandler.java","lineNumber":920,"className":"org.eclipse.jetty.server.handler.ContextHandler","methodName":"doHandle"},{"fileName":"ServletHandler.java","lineNumber":403,"className":"org.eclipse.jetty.servlet.ServletHandler","methodName":"doScope"},{"fileName":"SessionHandler.java","lineNumber":184,"className":"org.eclipse.jetty.server.session.SessionHandler","methodName":"doScope"},{"fileName":"ContextHandler.java","lineNumber":856,"className":"org.eclipse.jetty.server.handler.ContextHandler","methodName":"doScope"},{"fileName":"ScopedHandler.java","lineNumber":117,"className":"org.eclipse.jetty.server.handler.ScopedHandler","methodName":"handle"},{"fileName":"HandlerList.java","lineNumber":47,"className":"org.eclipse.jetty.server.handler.HandlerList","methodName":"handle"},{"fileName":"HandlerWrapper.java","lineNumber":114,"className":"org.eclipse.jetty.server.handler.HandlerWrapper","methodName":"handle"},{"fileName":"Server.java","lineNumber":352,"className":"org.eclipse.jetty.server.Server","methodName":"handle"},{"fileName":"HttpConnection.java","lineNumber":596,"className":"org.eclipse.jetty.server.HttpConnection","methodName":"handleRequest"},{"fileName":"HttpConnection.java","lineNumber":1049,"className":"org.eclipse.jetty.server.HttpConnection$RequestHandler","methodName":"headerComplete"},{"fileName":"HttpParser.java","lineNumber":590,"className":"org.eclipse.jetty.http.HttpParser","methodName":"parseNext"},{"fileName":"HttpParser.java","lineNumber":212,"className":"org.eclipse.jetty.http.HttpParser","methodName":"parseAvailable"},{"fileName":"HttpConnection.java","lineNumber":426,"className":"org.eclipse.jetty.server.HttpConnection","methodName":"handle"},{"fileName":"SelectChannelEndPoint.java","lineNumber":510,"className":"org.eclipse.jetty.io.nio.SelectChannelEndPoint","methodName":"handle"},{"fileName":"SelectChannelEndPoint.java","lineNumber":34,"className":"org.eclipse.jetty.io.nio.SelectChannelEndPoint","methodName":"access$000"},{"fileName":"SelectChannelEndPoint.java","lineNumber":40,"className":"org.eclipse.jetty.io.nio.SelectChannelEndPoint$1","methodName":"run"},{"fileName":"QueuedThreadPool.java","lineNumber":450,"className":"org.eclipse.jetty.util.thread.QueuedThreadPool$2","methodName":"run"},{"fileName":"Thread.java","lineNumber":744,"className":"java.lang.Thread","methodName":"run"}]}

And in server console output:

50:11:200 WARNING IOSServlet.getResponse  2ms.

org.openqa.selenium.WebDriverException: Error processing response.cannot find command for GET, /

org.openqa.selenium.WebDriverException: Error processing response.cannot find command for GET, /

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

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

System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51'

System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51'

Driver info: driver.version: unknown

Driver info: driver.version: unknown

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

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

System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51'

System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51'

Driver info: driver.version: unknown

Driver info: driver.version: unknown

at org.uiautomation.ios.server.servlet.IOSServlet.process(IOSServlet.java:121)

at org.uiautomation.ios.server.servlet.IOSServlet.process(IOSServlet.java:121)

at org.uiautomation.ios.server.servlet.IOSServlet.doGet(IOSServlet.java:46)

at org.uiautomation.ios.server.servlet.IOSServlet.doGet(IOSServlet.java:46)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:533)

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:533)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:475)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:475)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:920)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:920)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:856)

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:856)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)

at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:47)

at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:47)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)

at org.eclipse.jetty.server.Server.handle(Server.java:352)

at org.eclipse.jetty.server.Server.handle(Server.java:352)

at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)

at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)

at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1049)

at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1049)

at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)

at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)

at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)

at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)

at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)

at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)

at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)

at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)

at java.lang.Thread.run(Thread.java:744)

at java.lang.Thread.run(Thread.java:744)

Caused by: org.openqa.selenium.WebDriverException: cannot find command for GET, /

Caused by: org.openqa.selenium.WebDriverException: cannot find command for GET, /

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

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

System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51'

System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.7.0_51'

Driver info: driver.version: unknown

Driver info: driver.version: unknown

at org.uiautomation.ios.communication.WebDriverLikeCommand.getCommand(WebDriverLikeCommand.java:311)

at org.uiautomation.ios.communication.WebDriverLikeCommand.getCommand(WebDriverLikeCommand.java:311)

at org.uiautomation.ios.communication.WebDriverLikeRequest.getGenericCommand(WebDriverLikeRequest.java:115)

at org.uiautomation.ios.communication.WebDriverLikeRequest.getGenericCommand(WebDriverLikeRequest.java:115)

at org.uiautomation.ios.communication.WebDriverLikeRequest.getVariableValue(WebDriverLikeRequest.java:119)

at org.uiautomation.ios.communication.WebDriverLikeRequest.getVariableValue(WebDriverLikeRequest.java:119)

at org.uiautomation.ios.communication.WebDriverLikeRequest.getSession(WebDriverLikeRequest.java:132)

at org.uiautomation.ios.communication.WebDriverLikeRequest.getSession(WebDriverLikeRequest.java:132)

at org.uiautomation.ios.server.servlet.IOSServlet.getResponse(IOSServlet.java:150)

at org.uiautomation.ios.server.servlet.IOSServlet.getResponse(IOSServlet.java:150)

at org.uiautomation.ios.server.servlet.IOSServlet.process(IOSServlet.java:85)

at org.uiautomation.ios.server.servlet.IOSServlet.process(IOSServlet.java:85)

... 24 more

... 24 more
Now, the weird thing at this point is that other status sites of ios-server work, like e.g. http://0.0.0.0:5555/wd/hub/status which gives me:

{
"class": "org.openqa.selenium.remote.Response",
"hCode": 601235628,
"sessionId": "edb7ed90-8129-4b97-889b-15c7ef603e3c",
"state": null,
"status": 0,
"value": {
"build": {
"revision": "120cf4311807e2e137e519f4c4877cf6340d0cbc",
"time": "20130927-1435",
"version": "0.6.5"
},
"ios": {"simulatorVersion": "7.0"},
"java": {"version": "1.7.0_51"},
"os": {
"arch": "x86_64",
"name": "Mac OS X",
"version": "10.9.1"
},
"state": "success",
"supportedApps": [{
"CFBundleDevelopmentRegion": "English",
"CFBundleDisplayName": "Safari",
"CFBundleExecutable": "MobileSafari",
"CFBundleIcons": {"CFBundlePrimaryIcon": {
"CFBundleIconFiles": [
"icon-spotlight~ipad.png",
"icon-table~ipad.png",
"icon-about~ipad.png",
"icon-table~ipad.png",
"icon-sp...@2x.png",
"icon-...@2x.png",
"icon~ipad.png",
"icon-...@2x.png",
"icon@2x~iphone.png",
"icon@2x~ipad.png"
],
"UIPrenderedIcon": true
}},
"CFBundleIdentifier": "com.apple.mobilesafari",
"CFBundleInfoDictionaryVersion": "6.0",
"CFBundlePackageType": "APPL",
"CFBundleShortVersionString": "7.0",
"CFBundleSignature": "????",
"CFBundleSupportedPlatforms": ["iPhoneSimulator"],
"CFBundleURLTypes~ipad": [
{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "Web App URL",
"CFBundleURLSchemes": ["webclip"]
},
{
"CFBundleURLName": "Web site URL",
"CFBundleURLSchemes": [
"http",
"https"
]
},
{
"CFBundleURLName": "FTP URL",
"CFBundleURLSchemes": ["ftp"]
},
{
"CFBundleURLName": "Web Search URL",
"CFBundleURLSchemes": ["x-web-search"]
},
{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "MobileSafari Tab URL",
"CFBundleURLSchemes": ["com-apple-mobilesafari-tab"]
}
],
"CFBundleURLTypes~iphone": [
{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "Web App URL",
"CFBundleURLSchemes": ["webclip"]
},
{
"CFBundleURLName": "Web site URL",
"CFBundleURLSchemes": [
"http",
"https"
]
},
{
"CFBundleURLName": "Radar URL",
"CFBundleURLSchemes": [
"rdar",
"radar"
]
},
{
"CFBundleURLName": "FTP URL",
"CFBundleURLSchemes": ["ftp"]
},
{
"CFBundleURLName": "Web Search URL",
"CFBundleURLSchemes": ["x-web-search"]
},
{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "MobileSafari Tab URL",
"CFBundleURLSchemes": ["com-apple-mobilesafari-tab"]
}
],
"CFBundleURLTypes~ipod": [
{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "Web App URL",
"CFBundleURLSchemes": ["webclip"]
},
{
"CFBundleURLName": "Web site URL",
"CFBundleURLSchemes": [
"http",
"https"
]
},
{
"CFBundleURLName": "Radar URL",
"CFBundleURLSchemes": [
"rdar",
"radar"
]
},
{
"CFBundleURLName": "FTP URL",
"CFBundleURLSchemes": ["ftp"]
},
{
"CFBundleURLName": "Web Search URL",
"CFBundleURLSchemes": ["x-web-search"]
},
{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "MobileSafari Tab URL",
"CFBundleURLSchemes": ["com-apple-mobilesafari-tab"]
}
],
"CFBundleVersion": "9537.53",
"DTPlatformName": "iphonesimulator",
"DTSDKName": "iphonesimulator7.0",
"LSRequiresIPhoneOS": true,
"MallocBehavior": {"NanoAllocator": false},
"SBMatchingApplicationGenres": [
"Productivity",
"Utilities"
],
"SBUsesNetwork": 3,
"SafariProductVersion": "7.0",
"UIApplicationDisableLegacyAutorotationKey": true,
"UIBackgroundModes": [
"audio",
"continuousFallback"
],
"UIBackgroundStyle": "UIBackgroundStyleDarkBlur",
"UIDeviceFamily": [
2,
1
],
"UIHasPrefs": true,
"UIStatusBarTintParameters": {"UINavigationBar": {"Style": "UIBarStyleDefault"}},
"UISupportedInterfaceOrientations": [
"UIInterfaceOrientationPortrait",
"UIInterfaceOrientationLandscapeLeft",
"UIInterfaceOrientationLandscapeRight"
],
"UISupportedInterfaceOrientations~ipad": [
"UIInterfaceOrientationPortrait",
"UIInterfaceOrientationLandscapeLeft",
"UIInterfaceOrientationLandscapeRight",
"UIInterfaceOrientationPortraitUpsideDown"
],
"UIViewControllerBasedStatusBarAppearance": true,
"applicationPath": "/Users/valmar/.ios-driver/safariCopies/safari-7.0.app",
"device": "iphone",
"deviceAlt": [
"ipad",
"iphone",
"ipod"
],
"device_Alt": [
"iphone",
"ipad"
],
"resources": {"CFBundleIconFile": "/wd/hub/resources/hash=2134756163"},
"sdkVersion": "7.0",
"sdkVersion_Alt": [
"5.0",
"5.1",
"6.0",
"6.1"
],
"simulator": true,
"supportedLanguages": [
"hr",
"ro",
"ca",
"vi",
"tr",
"fr",
"unknown",
"hu",
"unknown",
"th",
"id",
"pt-PT",
"en-GB",
"fi",
"unknown",
"sv",
"it",
"sk",
"ja",
"uk",
"es",
"da",
"ms",
"ko",
"ar",
"he",
"en",
"nl",
"cs",
"el",
"pl",
"pt",
"ru",
"de"
],
"timeHack": false,
"variation": "Regular"
}]
}
}

Or http://0.0.0.0:5555/wd/hub/capabilities/all returns:

com.apple.mobilesafari on iphone(Simulator) {
"CFBundleDevelopmentRegion": "English",
"CFBundleDisplayName": "Safari",
"CFBundleExecutable": "MobileSafari",
"CFBundleIcons": {
"CFBundlePrimaryIcon": {
"CFBundleIconFiles": ["icon-spotlight~ipad.png", "icon-table~ipad.png", "icon-about~ipad.png", "icon-table~ipad.png", "icon-sp...@2x.png", "icon-...@2x.png", "icon~ipad.png", "icon-...@2x.png", "icon@2x~iphone.png", "icon@2x~ipad.png"],
"UIPrenderedIcon": true
}
},
"CFBundleIdentifier": "com.apple.mobilesafari",
"CFBundleInfoDictionaryVersion": "6.0",
"CFBundlePackageType": "APPL",
"CFBundleShortVersionString": "7.0",
"CFBundleSignature": "????",
"CFBundleSupportedPlatforms": ["iPhoneSimulator"],
"CFBundleURLTypes~ipad": [{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "Web App URL",
"CFBundleURLSchemes": ["webclip"]
}, {
"CFBundleURLName": "Web site URL",
"CFBundleURLSchemes": ["http", "https"]
}, {
"CFBundleURLName": "FTP URL",
"CFBundleURLSchemes": ["ftp"]
}, {
"CFBundleURLName": "Web Search URL",
"CFBundleURLSchemes": ["x-web-search"]
}, {
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "MobileSafari Tab URL",
"CFBundleURLSchemes": ["com-apple-mobilesafari-tab"]
}],
"CFBundleURLTypes~iphone": [{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "Web App URL",
"CFBundleURLSchemes": ["webclip"]
}, {
"CFBundleURLName": "Web site URL",
"CFBundleURLSchemes": ["http", "https"]
}, {
"CFBundleURLName": "Radar URL",
"CFBundleURLSchemes": ["rdar", "radar"]
}, {
"CFBundleURLName": "FTP URL",
"CFBundleURLSchemes": ["ftp"]
}, {
"CFBundleURLName": "Web Search URL",
"CFBundleURLSchemes": ["x-web-search"]
}, {
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "MobileSafari Tab URL",
"CFBundleURLSchemes": ["com-apple-mobilesafari-tab"]
}],
"CFBundleURLTypes~ipod": [{
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "Web App URL",
"CFBundleURLSchemes": ["webclip"]
}, {
"CFBundleURLName": "Web site URL",
"CFBundleURLSchemes": ["http", "https"]
}, {
"CFBundleURLName": "Radar URL",
"CFBundleURLSchemes": ["rdar", "radar"]
}, {
"CFBundleURLName": "FTP URL",
"CFBundleURLSchemes": ["ftp"]
}, {
"CFBundleURLName": "Web Search URL",
"CFBundleURLSchemes": ["x-web-search"]
}, {
"CFBundleURLIsPrivate": true,
"CFBundleURLName": "MobileSafari Tab URL",
"CFBundleURLSchemes": ["com-apple-mobilesafari-tab"]
}],
"CFBundleVersion": "9537.53",
"DTPlatformName": "iphonesimulator",
"DTSDKName": "iphonesimulator7.0",
"LSRequiresIPhoneOS": true,
"MallocBehavior": {
"NanoAllocator": false
},
"SBMatchingApplicationGenres": ["Productivity", "Utilities"],
"SBUsesNetwork": 3,
"SafariProductVersion": "7.0",
"UIApplicationDisableLegacyAutorotationKey": true,
"UIBackgroundModes": ["audio", "continuousFallback"],
"UIBackgroundStyle": "UIBackgroundStyleDarkBlur",
"UIDeviceFamily": [2, 1],
"UIHasPrefs": true,
"UIStatusBarTintParameters": {
"UINavigationBar": {
"Style": "UIBarStyleDefault"
}
},
"UISupportedInterfaceOrientations": ["UIInterfaceOrientationPortrait", "UIInterfaceOrientationLandscapeLeft", "UIInterfaceOrientationLandscapeRight"],
"UISupportedInterfaceOrientations~ipad": ["UIInterfaceOrientationPortrait", "UIInterfaceOrientationLandscapeLeft", "UIInterfaceOrientationLandscapeRight", "UIInterfaceOrientationPortraitUpsideDown"],
"UIViewControllerBasedStatusBarAppearance": true,
"applicationPath": "/Users/valmar/.ios-driver/safariCopies/safari-7.0.app",
"device": "iphone",
"deviceAlt": ["ipad", "iphone", "ipod"],
"device_Alt": ["iphone", "ipad"],
"sdkVersion": "7.0",
"sdkVersion_Alt": ["5.0", "5.1", "6.0", "6.1"],
"simulator": true,
"supportedLanguages": ["hr", "ro", "ca", "vi", "tr", "fr", "unknown", "hu", "unknown", "th", "id", "pt-PT", "en-GB", "fi", "unknown", "sv", "it", "sk", "ja", "uk", "es", "da", "ms", "ko", "ar", "he", "en", "nl", "cs", "el", "pl", "pt", "ru", "de"],
"timeHack": false,
"variation": "Regular"
}

What's going on? :-(

Reply all
Reply to author
Forward
0 new messages