{"action":"created","issue":{"url":"https://api.github.com/repos/ios-driver/ios-driver/issues/398","labels_url":"https://api.github.com/repos/ios-driver/ios-driver/issues/398/labels{/name}","comments_url":"https://api.github.com/repos/ios-driver/ios-driver/issues/398/comments","events_url":"https://api.github.com/repos/ios-driver/ios-driver/issues/398/events","html_url":"https://github.com/ios-driver/ios-driver/issues/398","id":125706309,"number":398,"title":"Cannot get iPad Simulator Safari to work","user":{"login":"CMTaylor","id":1346041,"avatar_url":"https://avatars.githubusercontent.com/u/1346041?v=3","gravatar_id":"","url":"https://api.github.com/users/CMTaylor","html_url":"https://github.com/CMTaylor","followers_url":"https://api.github.com/users/CMTaylor/followers","following_url":"https://api.github.com/users/CMTaylor/following{/other_user}","gists_url":"https://api.github.com/users/CMTaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/CMTaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CMTaylor/subscriptions","organizations_url":"https://api.github.com/users/CMTaylor/orgs","repos_url":"https://api.github.com/users/CMTaylor/repos","events_url":"https://api.github.com/users/CMTaylor/events{/privacy}","received_events_url":"https://api.github.com/users/CMTaylor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-08T22:19:03Z","updated_at":"2016-01-28T12:57:49Z","closed_at":null,"body":"I followed the instructions here: http://ios-driver.github.io/ios-driver/?page=safari \r\nAfter doing the permission changes to the SDK files I started the ios-server like this:\r\n```\r\ncmtaylor$ java -jar ios-server-standalone-0.6.6-SNAPSHOT.jar -port 42424\r\n06:12:939 INFO ApplicationStore.<init>  App archive folder:/Users/cmtaylor/_AccuRev_/RF-integ-CORE-Martin_Mac/TI-RF/robotframework-ExamCalcLibrary/3rdPartyDrivers/Java/applications\r\nversion:663b7cc0a7a48ff629b1bcb39bbd78aed1c1e560\r\nBeta features enabled (enabled by -real flag): false\r\nSimulator enabled : true\r\nInspector: http://0.0.0.0:42424/inspector/\r\nTests can access the server at http://0.0.0.0:42424/wd/hub\r\nServer status: http://0.0.0.0:42424/wd/hub/status\r\nConnected devices: http://0.0.0.0:42424/wd/hub/devices/all\r\nApplications: http://0.0.0.0:42424/wd/hub/applications/all\r\nCapabilities: http://0.0.0.0:42424/wd/hub/capabilities/all\r\n...\r\nBuild info: ios-driver 0.6.6-SNAPSHOT (built:20141009-1559,sha:663b7cc0a7a48ff629b1bcb39bbd78aed1c1e560)\r\nRunning on: Mac OS X 10.10.3 (x86_64)\r\nUsing java: 1.7.0_71\r\nUsing Xcode install: /Applications/Xcode.app\r\nUsing instruments: version:6.4, build: 57082\r\nUsing iOS version 8.4\r\niOS >= 6.0. Safari and hybrid apps are supported.\r\nApplications :\r\n\tCFBundleName=Safari,CFBundleVersion=600.1.4,/Users/cmtaylor/.ios-driver/safariCopies/safari-8.4.app\r\n2016-01-08 16:06:14.168:INFO:oejs.Server:jetty-8.y.z-SNAPSHOT\r\n2016-01-08 16:06:14.247:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:42424\r\n```\r\n\r\nThen in another terminal window I used interactive Python to do this:\r\n\r\n```\r\ncmtaylor$ python\r\nActivePython 2.7.2.5 (ActiveState Software Inc.) based on\r\nPython 2.7.2 (default, Jun 24 2011, 12:20:15) \r\n[GCC 4.2.1 (Apple Inc. build 5664)] on darwin\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> from selenium import webdriver\r\n>>> driver = webdriver.Remote(\"http://0.0.0.0:42424/wd/hub\", webdriver.DesiredCapabilities.IPAD)\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium-2.48.0-py2.7.egg/selenium/webdriver/remote/webdriver.py\", line 87, in __init__\r\n    self.start_session(desired_capabilities, browser_profile)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium-2.48.0-py2.7.egg/selenium/webdriver/remote/webdriver.py\", line 141, in start_session\r\n    'desiredCapabilities': desired_capabilities,\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium-2.48.0-py2.7.egg/selenium/webdriver/remote/webdriver.py\", line 201, in execute\r\n    self.error_handler.check_response(response)\r\n  File \"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium-2.48.0-py2.7.egg/selenium/webdriver/remote/errorhandler.py\", line 181, in check_response\r\n    raise exception_class(message, screen, stacktrace)\r\nselenium.common.exceptions.WebDriverException: Message: The server cannot run Capabilities [{platform=MAC, javascriptEnabled=true, CFBundleIdentifier=com.apple.mobilesafari, CFBundleName=Safari, locale=en_GB, variation=Retina, device=ipad, version=, sdkVersion=8.4}] at the moment.org.uiautomation.ios.application.APPIOSApplication cannot be cast to org.uiautomation.ios.application.IPAApplication\r\nStacktrace:\r\n    at org.uiautomation.ios.command.uiautomation.NewSessionNHandler.safeStart (NewSessionNHandler.java:101)\r\n    at org.uiautomation.ios.command.uiautomation.NewSessionNHandler.handle (NewSessionNHandler.java:55)\r\n    at org.uiautomation.ios.command.BaseCommandHandler.handleAndRunDecorators (BaseCommandHandler.java:110)\r\n    at org.uiautomation.ios.servlet.IOSServlet.getResponse (IOSServlet.java:158)\r\n    at org.uiautomation.ios.servlet.IOSServlet.process (IOSServlet.java:85)\r\n    at org.uiautomation.ios.servlet.IOSServlet.doPost (IOSServlet.java:60)\r\n    at javax.servlet.http.HttpServlet.service (HttpServlet.java:755)\r\n    at javax.servlet.http.HttpServlet.service (HttpServlet.java:848)\r\n    at org.eclipse.jetty.servlet.ServletHolder.handle (ServletHolder.java:684)\r\n    at org.eclipse.jetty.servlet.ServletHandler.doHandle (ServletHandler.java:501)\r\n    at org.eclipse.jetty.server.session.SessionHandler.doHandle (SessionHandler.java:229)\r\n    at org.eclipse.jetty.server.handler.ContextHandler.doHandle (ContextHandler.java:1086)\r\n    at org.eclipse.jetty.servlet.ServletHandler.doScope (ServletHandler.java:428)\r\n    at org.eclipse.jetty.server.session.SessionHandler.doScope (SessionHandler.java:193)\r\n    at org.eclipse.jetty.server.handler.ContextHandler.doScope (ContextHandler.java:1020)\r\n    at org.eclipse.jetty.server.handler.ScopedHandler.handle (ScopedHandler.java:135)\r\n    at org.eclipse.jetty.server.handler.HandlerList.handle (HandlerList.java:52)\r\n    at org.eclipse.jetty.server.handler.HandlerWrapper.handle (HandlerWrapper.java:116)\r\n    at org.eclipse.jetty.server.Server.handle (Server.java:370)\r\n    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest (AbstractHttpConnection.java:494)\r\n    at org.eclipse.jetty.server.AbstractHttpConnection.content (AbstractHttpConnection.java:982)\r\n    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content (AbstractHttpConnection.java:1043)\r\n    at org.eclipse.jetty.http.HttpParser.parseNext (HttpParser.java:865)\r\n    at org.eclipse.jetty.http.HttpParser.parseAvailable (HttpParser.java:240)\r\n    at org.eclipse.jetty.server.AsyncHttpConnection.handle (AsyncHttpConnection.java:82)\r\n    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle (SelectChannelEndPoint.java:667)\r\n    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run (SelectChannelEndPoint.java:52)\r\n    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob (QueuedThreadPool.java:608)\r\n    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run (QueuedThreadPool.java:543)\r\n    at java.lang.Thread.run (Thread.java:745)\r\n```\r\nMeanwhile the ios-driver server window showed a similar error message:\r\n\r\n```\r\n07:30:674 INFO NewSessionNHandler.safeStart  The server cannot run Capabilities [{platform=MAC, javascriptEnabled=true, CFBundleIdentifier=com.apple.mobilesafari, CFBundleName=Safari, locale=en_GB, variation=Retina, device=ipad, version=, sdkVersion=8.4}] at the moment.org.uiautomation.ios.application.APPIOSApplication cannot be cast to org.uiautomation.ios.application.IPAApplication\r\nBuild info: version: 'unknown', revision: 'unknown', time: 'unknown'\r\nSystem info: host: 'cmtaylor.home', ip: '192.168.1.4', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10.3', java.version: '1.7.0_71'\r\nDriver info: driver.version: unknown\r\n```\r\n\r\nAny fixes to the instructions referenced above, or other help to get this working, would be very much appreciated.\r\n\r\nThanks,\r\nMartin"},"comment":{"url":"https://api.github.com/repos/ios-driver/ios-driver/issues/comments/176170586","html_url":"https://github.com/ios-driver/ios-driver/issues/398#issuecomment-176170586","issue_url":"https://api.github.com/repos/ios-driver/ios-driver/issues/398","id":176170586,"user":{"login":"Send2gal","id":6003664,"avatar_url":"https://avatars.githubusercontent.com/u/6003664?v=3","gravatar_id":"","url":"https://api.github.com/users/Send2gal","html_url":"https://github.com/Send2gal","followers_url":"https://api.github.com/users/Send2gal/followers","following_url":"https://api.github.com/users/Send2gal/following{/other_user}","gists_url":"https://api.github.com/users/Send2gal/gists{/gist_id}","starred_url":"https://api.github.com/users/Send2gal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Send2gal/subscriptions","organizations_url":"https://api.github.com/users/Send2gal/orgs","repos_url":"https://api.github.com/users/Send2gal/repos","events_url":"https://api.github.com/users/Send2gal/events{/privacy}","received_events_url":"https://api.github.com/users/Send2gal/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T12:57:49Z","updated_at":"2016-01-28T12:57:49Z","body":"Have the same issue.\r\n`\r\njava -jar ios-server-standalone-0.6.6-SNAPSHOT.jar -port 4444\r\n55:19:241 INFO ApplicationStore.<init>  App archive folder:/Users/Gal/Documents/selenium/ios/applications\r\nversion:663b7cc0a7a48ff629b1bcb39bbd78aed1c1e560\r\nBeta features enabled (enabled by -real flag): false\r\nSimulator enabled : true\r\nInspector: http://0.0.0.0:4444/inspector/\r\nTests can access the server at http://0.0.0.0:4444/wd/hub\r\nServer status: http://0.0.0.0:4444/wd/hub/status\r\nConnected devices: http://0.0.0.0:4444/wd/hub/devices/all\r\nApplications: http://0.0.0.0:4444/wd/hub/applications/all\r\nCapabilities: http://0.0.0.0:4444/wd/hub/capabilities/all\r\nMonitoring '/Users/Gal/Documents/selenium/ios/applications' for new applications\r\nArchived apps: /Users/Gal/Documents/selenium/ios/applications\r\nBuild info: ios-driver 0.6.6-SNAPSHOT (built:20141009-1559,sha:663b7cc0a7a48ff629b1bcb39bbd78aed1c1e560)\r\nRunning on: Mac OS X 10.11.3 (x86_64)\r\nUsing java: 1.8.0_65\r\nUsing Xcode install: /Applications/Xcode.app\r\nUsing instruments: version:7.2, build: 59503\r\nUsing iOS version 9.2\r\niOS >= 6.0. Safari and hybrid apps are supported.\r\nApplications :\r\n\tCFBundleName=Safari,CFBundleVersion=601.1,/Users/Gal/.ios-driver/safariCopies/safari-9.2.app\r\n2016-01-28 14:55:19.782:INFO:oejs.Server:jetty-8.y.z-SNAPSHOT\r\n2016-01-28 14:55:19.826:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:4444\r\n`\r\nrun python script:\r\n\r\n`from selenium import webdriver\r\nfrom selenium.webdriver.common.desired_capabilities import DesiredCapabilities\r\n\r\ndriver = webdriver.Remote(command_executor='http://localhost:4444/wd/hub',\r\n                          desired_capabilities=DesiredCapabilities.IPAD)`\r\n\r\nand getting:\r\n\r\n`Traceback (most recent call last):\r\n  File \"/Users/Gal/PycharmProjects/qa-automation/tests/test.py\", line 6, in <module>\r\n    desired_capabilities=DesiredCapabilities.IPAD)\r\n  File \"/usr/local/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py\", line 87, in __init__\r\n    self.start_session(desired_capabilities, browser_profile)\r\n  File \"/usr/local/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py\", line 141, in start_session\r\n    'desiredCapabilities': desired_capabilities,\r\n  File \"/usr/local/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py\", line 201, in execute\r\n    self.error_handler.check_response(response)\r\n  File \"/usr/local/lib/python3.5/site-packages/selenium/webdriver/remote/errorhandler.py\", line 181, in check_response\r\n    raise exception_class(message, screen, stacktrace)\r\nselenium.common.exceptions.WebDriverException: Message: The server cannot run Capabilities [{javascriptEnabled=true, sdkVersion=9.2, CFBundleIdentifier=com.apple.mobilesafari, locale=en_GB, CFBundleName=Safari, device=ipad, version=, platform=MAC, variation=Retina}] at the moment.org.uiautomation.ios.application.APPIOSApplication cannot be cast to org.uiautomation.ios.application.IPAApplication\r\nStacktrace:\r\n    at org.uiautomation.ios.command.uiautomation.NewSessionNHandler.safeStart (NewSessionNHandler.java:101)\r\n    at org.uiautomation.ios.command.uiautomation.NewSessionNHandler.handle (NewSessionNHandler.java:55)\r\n    at org.uiautomation.ios.command.BaseCommandHandler.handleAndRunDecorators (BaseCommandHandler.java:110)\r\n    at org.uiautomation.ios.servlet.IOSServlet.getResponse (IOSServlet.java:158)\r\n    at org.uiautomation.ios.servlet.IOSServlet.process (IOSServlet.java:85)\r\n    at org.uiautomation.ios.servlet.IOSServlet.doPost (IOSServlet.java:60)\r\n    at javax.servlet.http.HttpServlet.service (HttpServlet.java:755)\r\n    at javax.servlet.http.HttpServlet.service (HttpServlet.java:848)\r\n    at org.eclipse.jetty.servlet.ServletHolder.handle (ServletHolder.java:684)\r\n    at org.eclipse.jetty.servlet.ServletHandler.doHandle (ServletHandler.java:501)\r\n    at org.eclipse.jetty.server.session.SessionHandler.doHandle (SessionHandler.java:229)\r\n    at org.eclipse.jetty.server.handler.ContextHandler.doHandle (ContextHandler.java:1086)\r\n    at org.eclipse.jetty.servlet.ServletHandler.doScope (ServletHandler.java:428)\r\n    at org.eclipse.jetty.server.session.SessionHandler.doScope (SessionHandler.java:193)\r\n    at org.eclipse.jetty.server.handler.ContextHandler.doScope (ContextHandler.java:1020)\r\n    at org.eclipse.jetty.server.handler.ScopedHandler.handle (ScopedHandler.java:135)\r\n    at org.eclipse.jetty.server.handler.HandlerList.handle (HandlerList.java:52)\r\n    at org.eclipse.jetty.server.handler.HandlerWrapper.handle (HandlerWrapper.java:116)\r\n    at org.eclipse.jetty.server.Server.handle (Server.java:370)\r\n    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest (AbstractHttpConnection.java:494)\r\n    at org.eclipse.jetty.server.AbstractHttpConnection.content (AbstractHttpConnection.java:982)\r\n    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content (AbstractHttpConnection.java:1043)\r\n    at org.eclipse.jetty.http.HttpParser.parseNext (HttpParser.java:865)\r\n    at org.eclipse.jetty.http.HttpParser.parseAvailable (HttpParser.java:240)\r\n    at org.eclipse.jetty.server.AsyncHttpConnection.handle (AsyncHttpConnection.java:82)\r\n    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle (SelectChannelEndPoint.java:667)\r\n    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run (SelectChannelEndPoint.java:52)\r\n    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob (QueuedThreadPool.java:608)\r\n    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run (QueuedThreadPool.java:543)\r\n    at java.lang.Thread.run (Thread.java:745)`"}}