Skip to content

Instantly share code, notes, and snippets.

@hiteshsh
Created December 17, 2018 14:49
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/c51951a18ec0a7e60e21d8df7cee9d4e to your computer and use it in GitHub Desktop.
Save hiteshsh/c51951a18ec0a7e60e21d8df7cee9d4e to your computer and use it in GitHub Desktop.
[HTTP] --> POST /wd/hub/session/ae16d942-5c76-436a-9a63-756b07f214a4/element
[HTTP] {"using":"xpath","value":"//android.widget.TextView[@text='MORE']"}
[debug] [W3C (ae16d942)] Calling AppiumDriver.findElement() with args: ["xpath","//android.widget.TextView[@text='MORE']","ae16d942-5c76-436a-9a63-756b07f214a4"]
[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/7339875b-97fb-4e19-a9b4-ba586a1421d1/element] with body: {"strategy":"xpath","selector":"//android.widget.TextView[@text='MORE']","context":"","multiple":false}
[JSONWP Proxy] Got an unexpected response: {"sessionId":"7339875b-97fb-4e19-a9b4-ba586a1421d1","status":32,"value":"io.appium.uiautomator2.common.exceptions.InvalidSelectorException: javax.xml.xpath.XPathExpressionException: org.w3c.dom.DOMException: android.support.v7.app.ActionBar.ˋ\n\tat io.appium.uiautomator2.model.XPathFinder.find(XP...
[debug] [MJSONWP] Matched JSONWP error code 32 to InvalidSelectorError
[debug] [W3C (ae16d942)] Encountered internal error running command: InvalidSelectorError: io.appium.uiautomator2.common.exceptions.InvalidSelectorException: javax.xml.xpath.XPathExpressionException: org.w3c.dom.DOMException: android.support.v7.app.ActionBar.ˋ
[debug] [W3C (ae16d942)] at io.appium.uiautomator2.model.XPathFinder.find(XPathFinder.java:67)
[debug] [W3C (ae16d942)] at io.appium.uiautomator2.utils.ElementLocationHelpers.getXPathNodeMatch(ElementLocationHelpers.java:72)
[debug] [W3C (ae16d942)] at io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:103)
[debug] [W3C (ae16d942)] at io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:75)
[debug] [W3C (ae16d942)] at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:36)
[debug] [W3C (ae16d942)] at io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:250)
[debug] [W3C (ae16d942)] at io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:241)
[debug] [W3C (ae16d942)] at io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)
[debug] [W3C (ae16d942)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [W3C (ae16d942)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [W3C (ae16d942)] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
[debug] [W3C (ae16d942)] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
[debug] [W3C (ae16d942)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [W3C (ae16d942)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [W3C (ae16d942)] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
[debug] [W3C (ae16d942)] at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:435)
[debug] [W3C (ae16d942)] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
[debug] [W3C (ae16d942)] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)
[debug] [W3C (ae16d942)] at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:250)
[debug] [W3C (ae16d942)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [W3C (ae16d942)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [W3C (ae16d942)] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
[debug] [W3C (ae16d942)] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294)
[debug] [W3C (ae16d942)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [W3C (ae16d942)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [W3C (ae16d942)] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)
[debug] [W3C (ae16d942)] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
[debug] [W3C (ae16d942)] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:611)
[debug] [W3C (ae16d942)] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:552)
[debug] [W3C (ae16d942)] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:466)
[debug] [W3C (ae16d942)] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438)
[debug] [W3C (ae16d942)] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140)
[debug] [W3C (ae16d942)] at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
[debug] [W3C (ae16d942)] at java.lang.Thread.run(Thread.java:764)
[debug] [W3C (ae16d942)] Caused by: javax.xml.xpath.XPathExpressionException: org.w3c.dom.DOMException: android.support.v7.app.ActionBar.ˋ
[debug] [W3C (ae16d942)] at org.apache.xpath.jaxp.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:298)
[debug] [W3C (ae16d942)] at io.appium.uiautomator2.model.XPathFinder.find(XPathFinder.java:65)
[debug] [W3C (ae16d942)] ... 33 more
[debug] [W3C (ae16d942)] Caused by: org.w3c.dom.DOMException: android.support.v7.app.ActionBar.ˋ
[debug] [W3C (ae16d942)] at org.apache.harmony.xml.dom.NodeImpl.setNameNS(NodeImpl.java:241)
[debug] [W3C (ae16d942)] at org.apache.harmony.xml.dom.ElementImpl.<init>(ElementImpl.java:51)
[debug] [W3C (ae16d942)] at org.apache.harmony.xml.dom.DocumentImpl.createElementNS(DocumentImpl.java:347)
[debug] [W3C (ae16d942)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:272)
[debug] [W3C (ae16d942)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
[debug] [W3C (ae16d942)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
[debug] [W3C (ae16d942)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
[debug] [W3C (ae16d942)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
[debug] [W3C (ae16d942)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
[debug] [W3C (ae16d942)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
[debug] [W3C (ae16d942)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
[debug] [W3C (ae16d942)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
[debug] [W3C (ae16d942)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
[debug] [W3C (ae16d942)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:296)
[debug] [W3C (ae16d942)] at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:128)
[debug] [W3C (ae16d942)] at org.apache.xpath.jaxp.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:295)
[debug] [W3C (ae16d942)] ... 34 more
[debug] [W3C (ae16d942)]
[debug] [W3C (ae16d942)] at errorFromMJSONWPStatusCode (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:786:12)
[debug] [W3C (ae16d942)] at ProxyRequestError.getActualError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:683:14)
[debug] [W3C (ae16d942)] 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