Skip to content

Instantly share code, notes, and snippets.

@midopa
Created June 7, 2016 00:25
Show Gist options
  • Save midopa/ba91923519a6b288a1cd510690c2a2b8 to your computer and use it in GitHub Desktop.
Save midopa/ba91923519a6b288a1cd510690c2a2b8 to your computer and use it in GitHub Desktop.
Checkboxes on Android Hybrid App
[HTTP] --> POST /wd/hub/session/85e70b42-f68d-4ced-9b6a-144994a4bdaa/element {"using":"xpath","value":"//android.widget.CheckBox"}
[MJSONWP] Calling AppiumDriver.findElement() with args: ["xpath","//android.widget.CheckBox","85e70b42-f68d-4ced-9b6a-144994a4bdaa"]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.CheckBox","context":"","multiple":false}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//android.widget.CheckBox' using 'XPATH' with the contextId: '' multiple: false
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[CLASS=android.widget.CheckBox, INSTANCE=0]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"ELEMENT":"97"}}
[MJSONWP] Responding to client with driver.findElement() result: {"ELEMENT":"97"}
[HTTP] <-- POST /wd/hub/session/85e70b42-f68d-4ced-9b6a-144994a4bdaa/element 200 170 ms - 88
[HTTP] --> GET /wd/hub/session/85e70b42-f68d-4ced-9b6a-144994a4bdaa/element/97/location {}
[MJSONWP] Calling AppiumDriver.getLocation() with args: ["97","85e70b42-f68d-4ced-9b6a-144994a4bdaa"]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:getLocation","params":{"elementId":"97"}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: getLocation
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"x":-3433,"y":2247}}
[MJSONWP] Responding to client with driver.getLocation() result: {"x":-3433,"y":2247}
[HTTP] <-- GET /wd/hub/session/85e70b42-f68d-4ced-9b6a-144994a4bdaa/element/97/location 200 40 ms - 92
[HTTP] --> GET /wd/hub/session/85e70b42-f68d-4ced-9b6a-144994a4bdaa/element/97/size {}
[MJSONWP] Calling AppiumDriver.getSize() with args: ["97","85e70b42-f68d-4ced-9b6a-144994a4bdaa"]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:getSize","params":{"elementId":"97"}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: getSize
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"width":4154,"height":129}}
[MJSONWP] Responding to client with driver.getSize() result: {"width":4154,"height":129}
[HTTP] <-- GET /wd/hub/session/85e70b42-f68d-4ced-9b6a-144994a4bdaa/element/97/size 200 38 ms - 99
[HTTP] --> GET /wd/hub/session/85e70b42-f68d-4ced-9b6a-144994a4bdaa/element/97/size {}
[MJSONWP] Calling AppiumDriver.getSize() with args: ["97","85e70b42-f68d-4ced-9b6a-144994a4bdaa"]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:getSize","params":{"elementId":"97"}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: getSize
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"width":4154,"height":129}}
[MJSONWP] Responding to client with driver.getSize() result: {"width":4154,"height":129}
[HTTP] <-- GET /wd/hub/session/85e70b42-f68d-4ced-9b6a-144994a4bdaa/element/97/size 200 37 ms - 99
[HTTP] --> GET /wd/hub/session/85e70b42-f68d-4ced-9b6a-144994a4bdaa/element/97/location {}
[MJSONWP] Calling AppiumDriver.getLocation() with args: ["97","85e70b42-f68d-4ced-9b6a-144994a4bdaa"]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:getLocation","params":{"elementId":"97"}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: getLocation
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"x":-3433,"y":2247}}
[MJSONWP] Responding to client with driver.getLocation() result: {"x":-3433,"y":2247}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment