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: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)
@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: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
olmlib.js:183 No one-time keys (alg=signed_curve25519) for device @jeangb:matrix.org:GYKWYYIJMD(anonymous function) @ olmlib.js:183_fulfilled @ q.js:834self.promiseDispatch.done @ q.js:863Promise.promise.promiseDispatch @ q.js:796(anonymous function) @ q.js:604runSingle @ q.js:137flush @ q.js:125onNextTick @ main.js:64Item.run @ browser.js:153drainQueue @ browser.js:123
olmlib.js:183 No one-time keys (alg=signed_curve25519) for device @jeangb:matrix.org:UOHACDFZUK(anonymous function) @ olmlib.js:183_fulfilled @ q.js:834self.promiseDispatch.done @ q.js:863Promise.promise.promiseDispatch @ q.js:796(anonymous function) @ q.js:604runSingle @ q.js:137flush @ q.js:125onNextTick @ main.js:64Item.run @ browser.js:153drainQueue @ browser.js:123
olmlib.js:183 No one-time keys (alg=signed_curve25519) for device @jeangb:matrix.org:UVJHAXJISK(anonymous function) @ olmlib.js:183_fulfilled @ q.js:834self.promiseDispatch.done @ q.js:863Promise.promise.promiseDispatch @ q.js:796(anonymous function) @ q.js:604runSingle @ q.js:
bundle.2fa3b4ef0ea5fed9229c.js:1 Vector starting at https://riot.im/app/#/room/!xOdADrXrEPOeqsWNqS:matrix.org
bundle.2fa3b4ef0ea5fed9229c.js:1 Routing URL https://riot.im/app/#/room/!xOdADrXrEPOeqsWNqS:matrix.org
bundle.2fa3b4ef0ea5fed9229c.js:85 Restoring session for @jeangb:matrix.org
bundle.2fa3b4ef0ea5fed9229c.js:85 setLoggedIn => @jeangb:matrix.org (guest=false) hs=https://matrix.org
bundle.2fa3b4ef0ea5fed9229c.js:85 Session persisted for @jeangb:matrix.org
bundle.2fa3b4ef0ea5fed9229c.js:113 SyncApi.sync: starting with sync token null
bundle.2fa3b4ef0ea5fed9229c.js:1 newscreen
bundle.2fa3b4ef0ea5fed9229c.js:84 Got TURN URIs: turn:turn.matrix.org:3478?transport=udp,turn:turn.matrix.org:3478?transport=tcp,turns:turn-ssl.matrix.org:443?transport=tcp refresh in 86400 secs
bundle.2fa3b4ef0ea5fed9229c.js:113 Got push rules
bundle.2fa3b4ef0ea5fed9229c.js:85 Presence: online
[Appium] Welcome to Appium v1.6.3
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"noReset":true,"xcodeConfigfile":"/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Configurations/ProjectSettings.xcconfig","realDeviceLogger":"/usr/local/lib/node_modules/deviceconsole/deviceconsole","platformVersion":"9.3.5","bundleId":"im.vector.app","automationName":"XCUITest","autoDismissAlerts":false,"platformName":"iOS","udid":"e75c0085c74a872846772a6b2ee56a86849a4d92","deviceName":"STZ_DE_13243","fullReset":false}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"noReset":true,"xcodeConfigfile":"/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Configurations/ProjectSettings.xcconfig","realDeviceLogger":"/usr/local/lib/node_modules/deviceconsole/deviceconsole","platformVersion":"9.3.5","bundleId":"im.vector.app","automationName":"XCUITest","autoDismissAl
=== BUILD TARGET WebDriverAgentLib OF PROJECT WebDriverAgent WITH CONFIGURATION Debug ===
Check dependencies
=== BUILD TARGET WebDriverAgentRunner OF PROJECT WebDriverAgent WITH CONFIGURATION Debug ===
Check dependencies
** BUILD SUCCEEDED **
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"noReset":true,"xcodeConfigfile":"/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Configurations/ProjectSettings.xcconfig","realDeviceLogger":"/usr/local/lib/node_modules/deviceconsole/deviceconsole","platformVersion":"9.3.5","bundleId":"im.vector.app","automationName":"XCUITest","platformName":"iOS","udid":"e75c0085c74a872846772a6b2ee56a86849a4d92","deviceName":"STZ_DE_13243","fullReset":false},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] noReset: true
[Appium] xcodeConfigfile: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Configurations/ProjectSettings.xcconfig'
[Appium] realDeviceLogger: '/usr/local/lib/node_modules/deviceconsole/deviceconsole'
[Appium] platformVersion: '9.3.5'
[Appium] bundleId: 'im.v
Gioms-Air:WebDriverAgent matrix$ xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=e75c0085c74a872846772a6b2ee56a86849a4d92' test
2016-12-13 18:06:50.491 xcodebuild[1863:25601] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/matrix/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/190F9209-76C5-433D-9D18-37588CD0E25A/Session-WebDriverAgentRunner-2016-12-13_180650-RUiLQr.log
2016-12-13 18:06:50.492 xcodebuild[1863:25585] [MT] IDETestOperationsObserverDebug: (C48040C6-5F03-4372-B674-091F26EB59AA) Beginning test session WebDriverAgentRunner-C48040C6-5F03-4372-B674-091F26EB59AA at 2016-12-13 18:06:50.490 with Xcode 8B62 on target <DVTiOSDevice: 0x7fe9c3655aa0> {
deviceSerialNumber: F2LNCLGBG5QQ
identifier: e75c0085c74a872846772a6b2ee56a86849a4d92
deviceClass: iPhone
deviceName: STZ_DE_13243
deviceIdentifier: e75c0085c74a8728
@jeangb
jeangb / gist:967252b461e709962796c1a26447004d
Created January 3, 2017 16:10
XCUIElement+FBIsVisible.m
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import "XCUIElement+FBIsVisible.h"