Skip to content

Instantly share code, notes, and snippets.

@hiteshsh
Created December 18, 2018 05:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiteshsh/8e37115aa64e52dca77f78aad4a8f636 to your computer and use it in GitHub Desktop.
Save hiteshsh/8e37115aa64e52dca77f78aad4a8f636 to your computer and use it in GitHub Desktop.
[HTTP] --> POST /wd/hub/session/be09c202-54c4-4d52-ad6d-4035cced00c1/element
[HTTP] {"using":"xpath","value":"//android.widget.TextView[@text='MORE']"}
[debug] [W3C (be09c202)] Calling AppiumDriver.findElement() with args: ["xpath","//android.widget.TextView[@text='MORE']","be09c202-54c4-4d52-ad6d-4035cced00c1"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Matched '/element' to command name 'findElement'
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8200/wd/hub/session/d4c4e61e-9caa-4486-950a-2b48022e4f99/element] with body: {"strategy":"xpath","selector":"//android.widget.TextView[@text='MORE']","context":"","multiple":false}
[JSONWP Proxy] Got an unexpected response: {"sessionId":"d4c4e61e-9caa-4486-950a-2b48022e4f99","status":13,"value":"org.apache.commons.jxpath.JXPathException: DOM parser error; android.support.v7.app.ActionBar.ˋ\n\tat org.apache.commons.jxpath.xml.DOMParser.parseXML(DOMParser.java:48)\n\tat org.apache.commons.jxpath.xml.DocumentContainer....
[debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
[debug] [W3C (be09c202)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: org.apache.commons.jxpath.JXPathException: DOM parser error; android.support.v7.app.ActionBar.ˋ
[debug] [W3C (be09c202)] at org.apache.commons.jxpath.xml.DOMParser.parseXML(DOMParser.java:48)
[debug] [W3C (be09c202)] at org.apache.commons.jxpath.xml.DocumentContainer.parseXML(DocumentContainer.java:157)
[debug] [W3C (be09c202)] at org.apache.commons.jxpath.xml.DocumentContainer.getValue(DocumentContainer.java:123)
[debug] [W3C (be09c202)] at org.apache.commons.jxpath.util.ValueUtils.getValue(ValueUtils.java:525)
[debug] [W3C (be09c202)] at org.apache.commons.jxpath.util.ValueUtils.isCollection(ValueUtils.java:53)
[debug] [W3C (be09c202)] at org.apache.commons.jxpath.ri.model.beans.CollectionPointerFactory.createNodePointer(CollectionPointerFactory.java:42)
[debug] [W3C (be09c202)] at org.apache.commons.jxpath.ri.model.NodePointer.newNodePointer(NodePointer.java:81)
[debug] [W3C (be09c202)] at org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.<init>(JXPathContextReferenceImpl.java:193)
[debug] [W3C (be09c202)] at org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.<init>(JXPathContextReferenceImpl.java:167)
[debug] [W3C (be09c202)] at org.apache.commons.jxpath.ri.JXPathContextFactoryReferenceImpl.newContext(JXPathContextFactoryReferenceImpl.java:39)
[debug] [W3C (be09c202)] at org.apache.commons.jxpath.JXPathContext.newContext(JXPathContext.java:416)
[debug] [W3C (be09c202)] at io.appium.uiautomator2.core.AccessibilityNodeInfoDumper.findNodes(AccessibilityNodeInfoDumper.java:216)
[debug] [W3C (be09c202)] at io.appium.uiautomator2.utils.ElementLocationHelpers.getXPathNodeMatch(ElementLocationHelpers.java:68)
[debug] [W3C (be09c202)] at io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:103)
[debug] [W3C (be09c202)] at io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:75)
[debug] [W3C (be09c202)] at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:36)
[debug] [W3C (be09c202)] at io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:250)
[debug] [W3C (be09c202)] at io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:241)
[debug] [W3C (be09c202)] at io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)
[debug] [W3C (be09c202)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [W3C (be09c202)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [W3C (be09c202)] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
[debug] [W3C (be09c202)] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
[debug] [W3C (be09c202)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [W3C (be09c202)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [W3C (be09c202)] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
[debug] [W3C (be09c202)] at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:435)
[debug] [W3C (be09c202)] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
[debug] [W3C (be09c202)] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)
[debug] [W3C (be09c202)] at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:250)
[debug] [W3C (be09c202)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [W3C (be09c202)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [W3C (be09c202)] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
[debug] [W3C (be09c202)] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294)
[debug] [W3C (be09c202)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [W3C (be09c202)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [W3C (be09c202)] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)
[debug] [W3C (be09c202)] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
[debug] [W3C (be09c202)] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:611)
[debug] [W3C (be09c202)] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:552)
[debug] [W3C (be09c202)] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:466)
[debug] [W3C (be09c202)] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438)
[debug] [W3C (be09c202)] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140)
[debug] [W3C (be09c202)] at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
[debug] [W3C (be09c202)] at java.lang.Thread.run(Thread.java:764)
[debug] [W3C (be09c202)] Caused by: org.w3c.dom.DOMException: android.support.v7.app.ActionBar.ˋ
[debug] [W3C (be09c202)] at org.apache.harmony.xml.dom.NodeImpl.setNameNS(NodeImpl.java:241)
[debug] [W3C (be09c202)] at org.apache.harmony.xml.dom.ElementImpl.<init>(ElementImpl.java:51)
[debug] [W3C (be09c202)] at org.apache.harmony.xml.dom.DocumentImpl.createElementNS(DocumentImpl.java:347)
[debug] [W3C (be09c202)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:272)
[debug] [W3C (be09c202)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
[debug] [W3C (be09c202)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
[debug] [W3C (be09c202)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
[debug] [W3C (be09c202)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
[debug] [W3C (be09c202)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
[debug] [W3C (be09c202)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
[debug] [W3C (be09c202)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
[debug] [W3C (be09c202)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
[debug] [W3C (be09c202)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
[debug] [W3C (be09c202)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
[debug] [W3C (be09c202)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:128)
[debug] [W3C (be09c202)] at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:107)
[debug] [W3C (be09c202)] at org.apache.commons.jxpath.xml.DOMParser.parseXML(DOMParser.java:45)
[debug] [W3C (be09c202)] ... 44 more
[debug] [W3C (be09c202)]
[debug] [W3C (be09c202)] at errorFromMJSONWPStatusCode (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:789:10)
[debug] [W3C (be09c202)] at ProxyRequestError.getActualError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:683:14)
[debug] [W3C (be09c202)] at JWProxy.command (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:234:19)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment