iOS driver inspector is not working and is showing up blank for the iOS simulator apps

348 views
Skip to first unread message

cheta...@gmail.com

unread,
Nov 22, 2013, 1:34:16 AM11/22/13
to ios-d...@googlegroups.com
Hi All,

I'm facing some issues on iOS inspector. It is not able to inspect the native app elements on IOS simulator. The page is showing up blank. When I open the URL http://localhost:4444/inspector/ on safari browser, I am getting NullpointerException in the terminal.

Steps followed.
1) Started the IOS driver server(version 6.5) using jar.
2) Started the execution by launching the simulator.
3) Set the break point in eclipse ide.

NOTE: Was able to launch the app on iOS simulator.

But when I open the url http://localhost:4444/inspector/ to inspect the elements of the native app, The elements are not getting displayed.

I'm tried it for INTERNATIONAL MOUNTAINS APP as well. Even still facing this issue.

Help is appriciated.

Im attaching the logs and screen shot for the same. Please look at the logs below

ava.lang.NullPointerException

at org.uiautomation.ios.inspector.controllers.SessionGuesserController.canHandle(SessionGuesserController.java:43)

at org.uiautomation.ios.inspector.IDEServlet.getController(IDEServlet.java:106)

at org.uiautomation.ios.inspector.IDEServlet.doGet(IDEServlet.java:94)

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

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.headerComplete(HttpConnection.java:1049)

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

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

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:724)

20:35:046 WARNING IDEServlet.doGet  null

20:44:178 WARNING IOSServlet.getResponse  1835ms. GET /status

org.openqa.selenium.WebDriverException: Cannot find dictionary for en

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

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

Driver info: driver.version: unknown

at org.uiautomation.ios.server.application.APPIOSApplication.getDictionary(APPIOSApplication.java:146)

at org.uiautomation.ios.server.application.IOSRunningApplication.getPotentialMatches(IOSRunningApplication.java:68)

at org.uiautomation.ios.server.application.IOSRunningApplication.getTranslations(IOSRunningApplication.java:79)

at org.uiautomation.ios.server.command.uiautomation.LogElementTreeNHandler$AddTranslationToLog.addTranslation(LogElementTreeNHandler.java:95)

at org.uiautomation.ios.server.command.uiautomation.LogElementTreeNHandler$AddTranslationToLog.decorate(LogElementTreeNHandler.java:85)

at org.uiautomation.ios.server.command.BaseCommandHandler.handleAndRunDecorators(BaseCommandHandler.java:95)

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.doGet(IOSServlet.java:46)

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

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)







Help is appreciated.

Thanks and Regards,
Chetan
inspectorscreenshot.png

Martin Lienhard

unread,
Nov 22, 2013, 10:42:33 PM11/22/13
to ios-d...@googlegroups.com
I'm getting the same exact NullPointerException when I try using the Inspector with a breakpoint on the International Mountains app.

Is there a workaround for this issue?

www.v...@gmail.com

unread,
Nov 25, 2013, 5:09:18 AM11/25/13
to ios-d...@googlegroups.com
I was able to solve this issues when I installed chrome browser and try inspecting elements on chrome browser. It will work. My guess would be there might be some problem with safari

Regards,
Vishwa

china.jia...@gmail.com

unread,
Jun 20, 2014, 5:47:20 AM6/20/14
to ios-d...@googlegroups.com
solve??

lunasu...@gmail.com

unread,
Dec 16, 2014, 10:50:53 PM12/16/14
to ios-d...@googlegroups.com
在 2013年11月22日星期五UTC+8下午2时34分16秒,cheta...@gmail.com写道:
I think change the Browser helps, maybe you can try to use chrome
Reply all
Reply to author
Forward
0 new messages