Skip to content

Instantly share code, notes, and snippets.

@nichotined
Created March 6, 2019 09:55
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 nichotined/b6c98131d4246a6658065ac45b4ddfb4 to your computer and use it in GitHub Desktop.
Save nichotined/b6c98131d4246a6658065ac45b4ddfb4 to your computer and use it in GitHub Desktop.
[HTTP] --> POST /wd/hub/session/05bab753-8429-4298-9ed9-7f933f26fdcb/element
[HTTP] {"using":"xpath","value":"//*[@resource-id=\"com.gojek.app.staging:id/product_name_view\" and @text=\"MORE\"]","sessionId":"05bab753-8429-4298-9ed9-7f933f26fdcb"}
[debug] [MJSONWP (05bab753)] Calling AppiumDriver.findElement() with args: ["xpath","//*[@resource-id=\"com.gojek.app.staging:id/product_name_view\" and @text=\"MORE\"]","05bab753-8429-4298-9ed9-7f933f26fdcb"]
[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] [WD Proxy] Matched '/element' to command name 'findElement'
[debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:8209/wd/hub/session/459c1392-3432-4fa8-836a-e9f873657d69/element] with body: {"strategy":"xpath","selector":"//*[@resource-id=\"com.gojek.app.staging:id/product_name_view\" and @text=\"MORE\"]","context":"","multiple":false}
[WD Proxy] Got an unexpected response: {"sessionId":"459c1392-3432-4fa8-836a-e9f873657d69","status":13,"value":"io.appium.uiautomator2.common.exceptions.UiAutomator2Exception: Error on line 100: At line 100, column 54: not well-formed (invalid token). Try changing the 'normalizeTagNames' driver setting to 'true' in order to workaround...
[debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
[debug] [MJSONWP (05bab753)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: io.appium.uiautomator2.common.exceptions.UiAutomator2Exception: Error on line 100: At line 100, column 54: not well-formed (invalid token). Try changing the 'normalizeTagNames' driver setting to 'true' in order to workaround the problem.
[debug] [MJSONWP (05bab753)] at io.appium.uiautomator2.core.AccessibilityNodeInfoDumper.findNodes(AccessibilityNodeInfoDumper.java:233)
[debug] [MJSONWP (05bab753)] at io.appium.uiautomator2.utils.ElementLocationHelpers.getXPathNodeMatch(ElementLocationHelpers.java:68)
[debug] [MJSONWP (05bab753)] at io.appium.uiautomator2.handler.FindElement.findElement(FindElement.java:103)
[debug] [MJSONWP (05bab753)] at io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:75)
[debug] [MJSONWP (05bab753)] at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:36)
[debug] [MJSONWP (05bab753)] at io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:250)
[debug] [MJSONWP (05bab753)] at io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:241)
[debug] [MJSONWP (05bab753)] at io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)
[debug] [MJSONWP (05bab753)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [MJSONWP (05bab753)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [MJSONWP (05bab753)] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
[debug] [MJSONWP (05bab753)] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
[debug] [MJSONWP (05bab753)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [MJSONWP (05bab753)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [MJSONWP (05bab753)] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
[debug] [MJSONWP (05bab753)] at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:435)
[debug] [MJSONWP (05bab753)] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
[debug] [MJSONWP (05bab753)] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)
[debug] [MJSONWP (05bab753)] at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:250)
[debug] [MJSONWP (05bab753)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [MJSONWP (05bab753)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [MJSONWP (05bab753)] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
[debug] [MJSONWP (05bab753)] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294)
[debug] [MJSONWP (05bab753)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[debug] [MJSONWP (05bab753)] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[debug] [MJSONWP (05bab753)] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)
[debug] [MJSONWP (05bab753)] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
[debug] [MJSONWP (05bab753)] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:611)
[debug] [MJSONWP (05bab753)] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:552)
[debug] [MJSONWP (05bab753)] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:466)
[debug] [MJSONWP (05bab753)] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438)
[debug] [MJSONWP (05bab753)] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140)
[debug] [MJSONWP (05bab753)] at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
[debug] [MJSONWP (05bab753)] at java.lang.Thread.run(Thread.java:764)
[debug] [MJSONWP (05bab753)] Caused by: org.jdom2.input.JDOMParseException: Error on line 100: At line 100, column 54: not well-formed (invalid token)
[debug] [MJSONWP (05bab753)] at org.jdom2.input.sax.SAXBuilderEngine.build(SAXBuilderEngine.java:232)
[debug] [MJSONWP (05bab753)] at org.jdom2.input.sax.SAXBuilderEngine.build(SAXBuilderEngine.java:253)
[debug] [MJSONWP (05bab753)] at org.jdom2.input.SAXBuilder.build(SAXBuilder.java:1091)
[debug] [MJSONWP (05bab753)] at io.appium.uiautomator2.core.AccessibilityNodeInfoDumper.findNodes(AccessibilityNodeInfoDumper.java:213)
[debug] [MJSONWP (05bab753)] ... 33 more
[debug] [MJSONWP (05bab753)] Caused by: org.apache.harmony.xml.ExpatParser$ParseException: At line 100, column 54: not well-formed (invalid token)
[debug] [MJSONWP (05bab753)] at org.apache.harmony.xml.ExpatParser.parseFragment(ExpatParser.java:519)
[debug] [MJSONWP (05bab753)] at org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:478)
[debug] [MJSONWP (05bab753)] at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:316)
[debug] [MJSONWP (05bab753)] at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:279)
[debug] [MJSONWP (05bab753)] at org.jdom2.input.sax.SAXBuilderEngine.build(SAXBuilderEngine.java:217)
[debug] [MJSONWP (05bab753)] ... 36 more
[debug] [MJSONWP (05bab753)]
[debug] [MJSONWP (05bab753)] at errorFromMJSONWPStatusCode (/Users/nicholaslagaunne/.nvm/versions/node/v9.11.2/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:789:10)
[debug] [MJSONWP (05bab753)] at ProxyRequestError.getActualError (/Users/nicholaslagaunne/.nvm/versions/node/v9.11.2/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:683:14)
[debug] [MJSONWP (05bab753)] at JWProxy.command (/Users/nicholaslagaunne/.nvm/versions/node/v9.11.2/lib/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:234:19)
[debug] [MJSONWP (05bab753)] at <anonymous>
[HTTP] <-- POST /wd/hub/session/05bab753-8429-4298-9ed9-7f933f26fdcb/element 500 362 ms - 4743
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment