Skip to content

Instantly share code, notes, and snippets.

View vikramvi's full-sized avatar
🚀
React.js, React Native Developer + 4 startup experiences

Vikram Ingleshwar vikramvi

🚀
React.js, React Native Developer + 4 startup experiences
View GitHub Profile
@vikramvi
vikramvi / gist:c4a8152f83567ee43f640285c849048f
Last active January 30, 2017 17:03
iOS simulator pull down refresh error
net.serenitybdd.core.exceptions.SerenityManagedException: Support for this gesture is not yet implemented. Please contact an Appium dev (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 70 milliseconds
Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09'
System info: host: 'Vikrams-MacBook-Pro.local', ip: '192.168.2.48', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_102'
Driver info: io.appium.java_client.ios.IOSDriver
Session ID: 18fa13bb-e151-482e-a0b7-7ed58e718aa9
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
@vikramvi
vikramvi / gist:9814a6b6281634a64bb97f2d04ba6101
Last active February 15, 2017 14:47
implicit wait not working - appium log
[debug] [XCUITest] Executing command 'proxyReqRes'
[debug] [JSONWP Proxy] Proxying [GET /wd/hub/session/0e359baa-47c7-47c4-9018-9d1a19b088a8/element/7D9813FD-213C-4A61-B11B-289F01F3661E/enabled] to [GET http://localhost:8100/session/4CCB93E7-4D9D-4130-BCC7-FFFEC6B2E346/element/7D9813FD-213C-4A61-B11B-289F01F3661E/enabled] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : true,\n \"sessionId\" : \"4CCB93E7-4D9D-4130-BCC7-FFFEC6B2E346\",\n \"status\" : 0\n}"
[JSONWP Proxy] Replacing sessionId 4CCB93E7-4D9D-4130-BCC7-FFFEC6B2E346 with 0e359baa-47c7-47c4-9018-9d1a19b088a8
[HTTP] <-- GET /wd/hub/session/0e359baa-47c7-47c4-9018-9d1a19b088a8/element/7D9813FD-213C-4A61-B11B-289F01F3661E/enabled 200 104 ms - 76
[HTTP] --> POST /wd/hub/session/0e359baa-47c7-47c4-9018-9d1a19b088a8/timeouts {"type":"implicit","ms":0}
[debug] [MJSONWP] Calling AppiumDriver.timeouts() with args: ["implicit",0,"0e359baa-47c7-47c4-9018-9d1a19b088a8"]
[debug] [XCUITest] Executing command 'timeouts'
[debug
@vikramvi
vikramvi / gist:2eedd0643f89140fa3d6ffac8f347644
Created February 16, 2017 11:43
wait not working with latest java appium client
[HTTP] <-- POST /wd/hub/session/3833494b-b432-4cbd-9f1e-2d7569ddcaf9/timeouts 200 3 ms - 76
[HTTP] --> POST /wd/hub/session/3833494b-b432-4cbd-9f1e-2d7569ddcaf9/element/90698A7F-FACA-4418-A08A-DE3776DAAC31/click {"id":"90698A7F-FACA-4418-A08A-DE3776DAAC31"}
[MJSONWP] Driver proxy active, passing request on via HTTP proxy
[debug] [XCUITest] Executing command 'proxyReqRes'
[debug] [JSONWP Proxy] Proxying [POST /wd/hub/session/3833494b-b432-4cbd-9f1e-2d7569ddcaf9/element/90698A7F-FACA-4418-A08A-DE3776DAAC31/click] to [POST http://localhost:8100/session/4ABE0CAD-DB2F-4B65-B164-CF99BE4F7795/element/90698A7F-FACA-4418-A08A-DE3776DAAC31/click] with body: {"id":"90698A7F-FACA-4418-A08A-DE3776DAAC31"}
[debug] [JSONWP Proxy] Got response with status 200: {"status":0,"id":"90698A7F-FACA-4418-A08A-DE3776DAAC31","value":"","sessionId":"4ABE0CAD-DB2F-4B65-B164-CF99BE4F7795"}
[JSONWP Proxy] Replacing sessionId 4ABE0CAD-DB2F-4B65-B164-CF99BE4F7795 with 3833494b-b432-4cbd-9f1e-2d7569ddcaf9
[HTTP] <-- POST /wd/hub/session/383
@vikramvi
vikramvi / gist:220ba19708a8f1ec0bbc8d906072f209
Created February 22, 2017 10:57
partial swipe left related issue
[HTTP] --> POST /wd/hub/session/fe33bdde-d6ce-430f-b29c-117c78483519/element {"using":"xpath","value":"//XCUIElementTypeApplication[1]/XCUIElementTypeWindow[1]//XCUIElementTypeTable[1]/XCUIElementTypeCell[1]"}
[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: ["xpath","//XCUIElementTypeApplication[1]/XCUIElementTypeWindow[1]//XCUIElementTypeTable[1]/XCUIElementTypeCell[1]","fe33bdde-d6ce-430f-b29c-117c78483519"]
[debug] [XCUITest] Executing command 'findElement'
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, accessibility id
[debug] [BaseDriver] Waiting up to 1000 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/71470ACA-5975-4621-AA73-B40034ABD75D/element] with body: {"using":"xpath","value":"//XCUIElementTypeApplication[1]/XCUIElementTypeWindow[1]//XCUIElementTypeTable[1]/XCUIElementTypeCell[1]"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"ELEMENT":"13
@vikramvi
vikramvi / gist:ec16d0b10e766987616471a167bb1f67
Created March 1, 2017 10:16
Beta 4 - timeout issue logs
------------------------------------------ all 3 values are set (Total Time Taken 9 sec ) ------------------------------------------
Appium] Welcome to Appium v1.6.4-beta
[Appium] Non-default server args:
[Appium] port: 15002
[Appium] Appium REST http interface listener started on 0.0.0.0:15002
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.6.4-beta","revision":null}}
[HTTP] <-- GET /wd/hub/status 200 15 ms - 88
@vikramvi
vikramvi / gist:b78f97fbe8742a103bfda251a51dc7ac
Created April 3, 2017 14:21
[UiAutomator2] Waiting for UiAutomator2 to be online
[Appium] Welcome to Appium v1.6.4-beta
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"newCommandTimeout":999999,"automationName":"uiautomator2","platformName":"Android","deviceName":"placeholder string","app":"/Users/vikram-anna/Documents/Noa/Workspace/Mobile-Automation/iOS-Automation/Rider-App-Automation/Rider.apk"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"newCommandTimeout":999999,"automationName":"uiautomator2","platformName":"Android","deviceName":"placeholder string","app":"/Users/vikram-anna/Documents/Noa/Workspace/Mobile-Automation/iOS-Automation/Rider-App-Automation/Rider.apk"},null,null,null,null]
[Appium] Creating new AndroidUiautomator2Driver (v0.2.11) session
[Appium] Capabilities:
[Appium] newCommandTimeout: 999999
[Appium] automationName: 'uiautomator2'
[Appium] platformName: 'Android'
[Appium] deviceName: 'placeholder string'
@vikramvi
vikramvi / gist:c18c280af8384cd52858359452b36de3
Created April 3, 2017 14:42
Could not proxy command to remote server. Original error: Error: socket hang up
[Appium] Welcome to Appium v1.6.4-beta
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"newCommandTimeout":999999,"automationName":"uiautomator2","platformName":"Android","deviceName":"placeholder string","app":"/Users/vikram-anna/Documents/Noa/Workspace/Mobile-Automation/iOS-Automation/Rider-App-Automation/Rider.apk"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"newCommandTimeout":999999,"automationName":"uiautomator2","platformName":"Android","deviceName":"placeholder string","app":"/Users/vikram-anna/Documents/Noa/Workspace/Mobile-Automation/iOS-Automation/Rider-App-Automation/Rider.apk"},null,null,null,null]
[Appium] Creating new AndroidUiautomator2Driver (v0.2.11) session
[Appium] Capabilities:
[Appium] newCommandTimeout: 999999
[Appium] automationName: 'uiautomator2'
[Appium] platformName: 'Android'
[Appium] deviceName: 'placeholder string'
@vikramvi
vikramvi / gist:133acc65a4704d34185a9b0f2ae1c7fc
Created April 3, 2017 14:52
[ADB] Error: Error getting device platform version. Original error: Error executing adbExec
[Appium] Welcome to Appium v1.6.4-beta
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"newCommandTimeout":999999,"automationName":"uiautomator2","platformName":"Android","deviceName":"placeholder string","app":"/Users/vikram-anna/Documents/Noa/Workspace/Mobile-Automation/iOS-Automation/Rider-App-Automation/Rider.apk"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"newCommandTimeout":999999,"automationName":"uiautomator2","platformName":"Android","deviceName":"placeholder string","app":"/Users/vikram-anna/Documents/Noa/Workspace/Mobile-Automation/iOS-Automation/Rider-App-Automation/Rider.apk"},null,null,null,null]
[Appium] Creating new AndroidUiautomator2Driver (v0.2.11) session
[Appium] Capabilities:
[Appium] newCommandTimeout: 999999
[Appium] automationName: 'uiautomator2'
[Appium] platformName: 'Android'
[Appium] deviceName: 'placeholder string'
@vikramvi
vikramvi / gist:829edd8b04f79f186329ad6d80e9f1fe
Created April 4, 2017 09:37
adb logcat for issue [UiAutomator2] Waiting for UiAutomator2 to be online
04-04 11:12:36.380 6580 6580 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
04-04 11:12:36.384 6580 6580 D AndroidRuntime: CheckJNI is OFF
04-04 11:12:36.420 6580 6580 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
04-04 11:12:36.456 6580 6580 I Radio-JNI: register_android_hardware_Radio DONE
04-04 11:12:36.475 6580 6580 D AndroidRuntime: Calling main entry com.android.commands.am.Am
04-04 11:12:36.484 774 1998 I ActivityManager: Force stopping io.appium.uiautomator2.server appid=10098 user=0: start instr
04-04 11:12:36.498 774 1998 I ActivityManager: Start proc 6589:io.appium.uiautomator2.server/u0a98 for added application io.appium.uiautomator2.server
04-04 11:12:36.499 6589 6589 I art : Late-enabling -Xcheck:jni
04-04 11:12:36.537 6589 6589 W System : ClassLoader referenced unknown path: /data/app/io.appium.uiautomator2.server.test-1/lib/arm
04-04 11:12:36.538 6589 6589 W System : ClassLoader refere
@vikramvi
vikramvi / gist:427ec95708ede46c7092b64a59478a57
Created April 4, 2017 10:43
[MJSONWP] Encountered internal error running command: TypeError: Path must be a string. Received null
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"newCommandTimeout":999999,"automationName":"uiautomator2","platformName":"Android","platformVersion":"5.1","deviceName":"placeholder string","browserName":"Chrome"},null,null,null,null]
[Appium] Creating new AndroidUiautomator2Driver (v0.2.11) session
[Appium] Capabilities:
[Appium] newCommandTimeout: 999999
[Appium] automationName: 'uiautomator2'
[Appium] platformName: 'Android'
[Appium] platformVersion: '5.1'
[Appium] deviceName: 'placeholder string'
[Appium] browserName: 'Chrome'
[BaseDriver] Session created with session id: 478f169a-1d70-450c-bdc0-62d5e4568a5a