Skip to content

Instantly share code, notes, and snippets.

@hiteshsh
Created December 18, 2018 15:09
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/49bee91cc1b19163418d1d457a680c75 to your computer and use it in GitHub Desktop.
Save hiteshsh/49bee91cc1b19163418d1d457a680c75 to your computer and use it in GitHub Desktop.
[HTTP] --> POST /wd/hub/session/e9d6b0a4-f5fc-43c9-b6fb-609d68583841/element
[HTTP] {"using":"xpath","value":"//android.widget.TextView[@text='MORE']"}
[debug] [W3C (e9d6b0a4)] Calling AppiumDriver.findElement() with args: ["xpath","//android.widget.TextView[@text='MORE']","e9d6b0a4-f5fc-43c9-b6fb-609d68583841"]
[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/8f1fb959-18ac-4327-bd79-bb9bf60422e9/element] with body: {"strategy":"xpath","selector":"//android.widget.TextView[@text='MORE']","context":"","multiple":false}
[JSONWP Proxy] Got an unexpected response: {"sessionId":"8f1fb959-18ac-4327-bd79-bb9bf60422e9","status":13,"value":"io.appium.uiautomator2.common.exceptions.UiAutomator2Exception: org.jdom2.input.JDOMParseException: Error on line 159: At line 159, column 54: not well-formed (invalid token)\n\tat io.appium.uiautomator2.core.AccessibilityNo...
[debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
[debug] [W3C (e9d6b0a4)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: io.appium.uiautomator2.common.exceptions.UiAutomator2Exception: org.jdom2.input.JDOMParseException: Error on line 159: At line 159, column 54: not well-formed (invalid token)
[debug] [W3C (e9d6b0a4)] at io.appium.uiautomator2.core.AccessibilityNodeInfoDumper.findNodes(AccessibilityNodeInfoDumper.java:230)
[debug] [W3C (e9d6b0a4)] at io.appium.uiautomator2.utils.ElementLocationHelpers.getXPathNodeMatch(ElementLocationHelpers.java:68)
[debug] [W3C (e9d6b0a4)] at io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:103)
[debug] [W3C (e9d6b0a4)] at io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:75)
[debug] [W3C (e9d6b0a4)] at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:36)
[debug] [W3C (e9d6b0a4)] at io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:250)
[debug] [W3C (e9d6b0a4)] at io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:241)
[debug] [W3C (e9d6b0a4)] at io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)
[debug] [W3C (e9d6b0a4)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [W3C (e9d6b0a4)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [W3C (e9d6b0a4)] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
[debug] [W3C (e9d6b0a4)] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
[debug] [W3C (e9d6b0a4)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [W3C (e9d6b0a4)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [W3C (e9d6b0a4)] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
[debug] [W3C (e9d6b0a4)] at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:435)
[debug] [W3C (e9d6b0a4)] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
[debug] [W3C (e9d6b0a4)] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)
[debug] [W3C (e9d6b0a4)] at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:250)
[debug] [W3C (e9d6b0a4)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [W3C (e9d6b0a4)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [W3C (e9d6b0a4)] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
[debug] [W3C (e9d6b0a4)] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294)
[debug] [W3C (e9d6b0a4)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [W3C (e9d6b0a4)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [W3C (e9d6b0a4)] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)
[debug] [W3C (e9d6b0a4)] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
[debug] [W3C (e9d6b0a4)] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:611)
[debug] [W3C (e9d6b0a4)] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:552)
[debug] [W3C (e9d6b0a4)] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:466)
[debug] [W3C (e9d6b0a4)] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438)
[debug] [W3C (e9d6b0a4)] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140)
[debug] [W3C (e9d6b0a4)] at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
[debug] [W3C (e9d6b0a4)] at java.lang.Thread.run(Thread.java:764)
[debug] [W3C (e9d6b0a4)] Caused by: org.jdom2.input.JDOMParseException: Error on line 159: At line 159, column 54: not well-formed (invalid token)
[debug] [W3C (e9d6b0a4)] at org.jdom2.input.sax.SAXBuilderEngine.build(SAXBuilderEngine.java:232)
[debug] [W3C (e9d6b0a4)] at org.jdom2.input.sax.SAXBuilderEngine.build(SAXBuilderEngine.java:253)
[debug] [W3C (e9d6b0a4)] at org.jdom2.input.SAXBuilder.build(SAXBuilder.java:1091)
[debug] [W3C (e9d6b0a4)] at io.appium.uiautomator2.core.AccessibilityNodeInfoDumper.findNodes(AccessibilityNodeInfoDumper.java:205)
[debug] [W3C (e9d6b0a4)] ... 33 more
[debug] [W3C (e9d6b0a4)] Caused by: org.apache.harmony.xml.ExpatParser$ParseException: At line 159, column 54: not well-formed (invalid token)
[debug] [W3C (e9d6b0a4)] at org.apache.harmony.xml.ExpatParser.parseFragment(ExpatParser.java:519)
[debug] [W3C (e9d6b0a4)] at org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:478)
[debug] [W3C (e9d6b0a4)] at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:316)
[debug] [W3C (e9d6b0a4)] at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:279)
[debug] [W3C (e9d6b0a4)] at org.jdom2.input.sax.SAXBuilderEngine.build(SAXBuilderEngine.java:217)
[debug] [W3C (e9d6b0a4)] ... 36 more
[debug] [W3C (e9d6b0a4)]
[debug] [W3C (e9d6b0a4)] at errorFromMJSONWPStatusCode (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:789:10)
[debug] [W3C (e9d6b0a4)] at ProxyRequestError.getActualError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:683:14)
[debug] [W3C (e9d6b0a4)] 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