Skip to content

Instantly share code, notes, and snippets.

View hiteshsh's full-sized avatar

Hitesh Sharma hiteshsh

  • Bangalore, India
View GitHub Profile
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<hierarchy index="0" class="hierarchy" rotation="0" width="1440" height="2392">
<android.widget.FrameLayout index="0" package="com.xxx.app.staging" class="android.widget.FrameLayout" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[0,0][1440,2392]" displayed="true">
<android.widget.LinearLayout index="0" package="com.xxx.app.staging" class="android.widget.LinearLayout" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[0,0][1440,2392]" displayed="true">
<android.widget.FrameLayout index="0" package="com.xxx.app.staging" class="android.widget.FrameLayout" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="fals
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<hierarchy index="0" class="hierarchy" rotation="0" width="1440" height="2392">
<android.widget.FrameLayout index="0" package="com.xxx.app.xxx" class="android.widget.FrameLayout" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[0,0][1440,2392]" displayed="true">
<android.widget.LinearLayout index="0" package="com.xxx.app.xxx" class="android.widget.LinearLayout" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[0,0][1440,2392]" displayed="true">
<android.widget.FrameLayout index="0" package="com.xxx.app.xxx" class="android.widget.FrameLayout" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clic
[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.JDOMPar
[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.Act
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
2 <hierarchy index="0" class="hierarchy" rotation="0" width="1440" height="2392">
3: <android.widget.FrameLayout index="0" package="com.xxx.app.xxx" class="android.widget.FrameLayout" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[0,0][1440,2392]" displayed="true">
4: <android.widget.LinearLayout index="0" package="com.xxx.app.xxx" class="android.widget.LinearLayout" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[0,0][1440,2392]" displayed="true">
5: <android.widget.FrameLayout index="0" package="com.xxx.app.xxx" class="android.widget.FrameLayout" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="fals
[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.XPat
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<hierarchy index="0" class="hierarchy" rotation="0" width="1440" height="2392">
<android.widget.FrameLayout index="0" package="com.xxx.app.xxx" class="android.widget.FrameLayout" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[0,0][1440,2392]" displayed="true">
<android.widget.LinearLayout index="0" package="com.xxx.app.xxx" class="android.widget.LinearLayout" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[0,0][1440,2392]" displayed="true">
<android.widget.FrameLayout index="0" package="com.xxx.app.xxx" class="android.widget.FrameLayout" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clic
[HTTP] --> POST /wd/hub/session/9bc72422-09ac-4dee-91fd-35e936a0b972/element
[HTTP] {"using":"xpath","value":"//android.widget.TextView[@text='MORE']"}
[debug] [W3C (9bc72422)] Calling AppiumDriver.findElement() with args: ["xpath","//android.widget.TextView[@text='MORE']","9bc72422-09ac-4dee-91fd-35e936a0b972"]
[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/548e854a-6d46-4fc2-ab16-9ed4f4d082b8/element] with body: {"strategy":"xpath","selector":"//android.widget.TextView[@text='MORE']","context":"","multiple":false}
[JSONWP Proxy] Got an unexpected response: {"sessionId":"548e854a-6d46-4fc2-ab16-9ed4f4d082b8","status":32,"value":"io.appium.uiautomator2.common.exceptions.InvalidSelectorException: javax.xml.xpath.XPat
hiteshs@INhiteshs ~ $ appium [jruby-9.1.6.0]
hiteshs@INhiteshs ~ $ appium [jruby-9.1.6.0]
[Appium] Welcome to Appium v1.9.0-beta.1
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"app":"/Users/hiteshs/Documents/QA/vodqa.zip","platformName":"iOS","deviceName":"iPhone X","platformVersion":"11.2"},"capabilities":{"alwaysMatch":{"appium:app":"/Users/hiteshs/Documents/QA/vodqa.zip","appium:deviceName":"iPhone X","platformName":"ios","appium:platformVersion":"11.2"},"firstMatch":[{}]}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/hiteshs/Documents/QA/vodqa.zip","platformName":"iOS","deviceName":"iPhone X","platformVersion":"11.2"},null,{"alwaysMatch
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"app":"/Users/hiteshs/Documents/QA/vodqa.zip","platformName":"iOS","deviceName":"iPhone X","platformVersion":"11.2"},"capabilities":{"alwaysMatch":{"appium:app":"/Users/hiteshs/Documents/QA/vodqa.zip","appium:deviceName":"iPhone X","platformName":"ios","appium:platformVersion":"11.2"},"firstMatch":[{}]}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/hiteshs/Documents/QA/vodqa.zip","platformName":"iOS","deviceName":"iPhone X","platformVersion":"11.2"},null,{"alwaysMatch":{"appium:app":"/Users/hiteshs/Documents/QA/vodqa.zip","appium:deviceName":"iPhone X","platformName":"ios","appium:platformVersion":"11.2"},"firstMatch":[{}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1535473167387 (21:49:27 GMT+0530 (IST))
[Appium] Requested iOS support with version >= 10, using 'XCUITest' driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 and up.
[Appium] Creating new XCUITes