Skip to content

Instantly share code, notes, and snippets.

View jeangb's full-sized avatar

Jean Gouyou-Beauchamps jeangb

  • Rennes, France
View GitHub Profile
@jeangb
jeangb / gist:f779ae14ad311aeddc25f9817d699642
Created October 21, 2016 08:23
Appium server logs when using setValue on an edittext MobileElement
info: --> POST /wd/hub/session/b6ba9e17-14e9-4be3-af59-c9f7379f396b/elements {"using":"id","value":"im.vector.alpha:id/login_user_name"}
> info: [debug] Waiting up to 0ms for condition
> info: [debug] Pushing command to appium work queue: ["find",{"strategy":"id","selector":"im.vector.alpha:id/login_user_name","context":"","multiple":true}]
> info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"im.vector.alpha:id/login_user_name","context":"","multiple":true}}
> info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
> info: [debug] [BOOTSTRAP] [debug] Got command action: find
> info: [debug] [BOOTSTRAP] [debug] Finding im.vector.alpha:id/login_user_name using ID with the contextId: multiple: true
> info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[RESOURCE_ID=im.vector.alpha:id/login_user_name]
> info: [debug] [BOOTSTRAP] [debug] getElements selector:UiSelector[RESOURCE_ID=im.vector.alpha:id/login_user_name]
> info: [debug] [BO
@jeangb
jeangb / gist:7d628731c752facc1c829eca55d9ff55
Created October 11, 2016 09:51
Appium server error log
> info: [debug] Pushing command to appium work queue: ["find",{"strategy":"xpath","selector":"//android.widget.ImageButton","context":"","multiple":false}]
> info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.ImageButton","context":"","multiple":false}}
> info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
> info: [debug] [BOOTSTRAP] [debug] Got command action: find
> info: [debug] [BOOTSTRAP] [debug] Finding //android.widget.ImageButton using XPATH with the contextId: multiple: false
> info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":"Could not find an element using supplied strategy. ","status":7}
> info: [debug] Condition unmet after 210ms. Timing out.
> info: [debug] Responding to client with error: {"status":7,"value":{"message":"An element could not be located on the page using the given search parameters.","origValue":"Could not find an element using supplied strategy. "},"sessionId":"81
@jeangb
jeangb / gist:1c523708f0c91dac026a4616c07772b0
Created October 11, 2016 09:44
java.lang.NullPointerException
java.lang.NullPointerException
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:152)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:636)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:40)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:369)
at io.appium.java_client.DefaultGenericMobileDriver.findElement(DefaultGenericMobileDriver.java:56)
at io.appium.java_client.AppiumDriver.findElement(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.findElement(AndroidDriver.java:1)