Skip to content

Instantly share code, notes, and snippets.

View dsavchenkov's full-sized avatar

Dmitriy Savchenkov dsavchenkov

View GitHub Profile
Accept logs
[HTTP] --> POST /wd/hub/session/426d7e02-5c67-497c-9509-ac29ef6475f5/accept_alert {"sessionId":"426d7e02-5c67-497c-9509-ac29ef6475f5"}
[debug] [MJSONWP] Calling AppiumDriver.postAcceptAlert() with args: ["426d7e02-5c67-497c-9509-ac29ef6475f5"]
[debug] [XCUITest] Executing command 'postAcceptAlert'
[debug] [JSONWP Proxy] Proxying [POST /alert/accept] to [POST http://localhost:8100/session/3674738F-71DD-4A42-83A0-759E607BC8DB/alert/accept] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : {\n\n },\n \"sessionId\" : \"3674738F-71DD-4A42-83A0-759E607BC8DB\",\n \"status\" : 0\n}"
[debug] [MJSONWP] Responding to client with driver.postAcceptAlert() result: {}
[HTTP] <-- POST /wd/hub/session/426d7e02-5c67-497c-9509-ac29ef6475f5/accept_alert 200 1833 ms - 74
@dsavchenkov
dsavchenkov / gist:067b36950c7a90183287ceda25710447
Created January 30, 2017 07:43
Tap to button in alert in Landscape mode
[HTTP] --> POST /wd/hub/session/696b8fe3-4ab5-4b99-9fb5-f92a2d89683d/element {"using":"id","value":"Allow","sessionId":"696b8fe3-4ab5-4b99-9fb5-f92a2d89683d"}
[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: ["id","Allow","696b8fe3-4ab5-4b99-9fb5-f92a2d89683d"]
[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 5000 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/F4939786-5A6B-4190-9E60-40EE5B48EEB4/element] with body: {"using":"id","value":"Allow"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"ELEMENT":"4C218D69-002D-418F-93F7-132510DCDAC9","type":"XCUIElementTypeButton","label":"Allow"},"sessionId":"F4939786-5A6B-4190-9E60-40EE5B48EEB4","status":0}
[debug] [MJSONWP] Responding to client with driver.findElement() result: {"ELEMENT":"4C218D69-002D-418F-93F7
[HTTP] --> POST /wd/hub/session/696b8fe3-4ab5-4b99-9fb5-f92a2d89683d/appium/device/hide_keyboard {"strategy":"tapOutside","sessionId":"696b8fe3-4ab5-4b99-9fb5-f92a2d89683d"}
[debug] [MJSONWP] Calling AppiumDriver.hideKeyboard() with args: ["tapOutside",null,null,null,"696b8fe3-4ab5-4b99-9fb5-f92a2d89683d"]
[debug] [XCUITest] Executing command 'hideKeyboard'
[debug] [BaseDriver] Waiting up to 5000 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element] to [POST http://localhost:8100/session/F4939786-5A6B-4190-9E60-40EE5B48EEB4/element] with body: {"using":"class name","value":"XCUIElementTypeKeyboard"}
[debug] [JSONWP Proxy] Got response with status 200: {"value":{"ELEMENT":"4520F002-0CFD-4890-B754-EE5BEF1F0BCC","type":"XCUIElementTypeKeyboard","label":null},"sessionId":"F4939786-5A6B-4190-9E60-40EE5B48EEB4","status":0}
[debug] [XCUITest] Finding keyboard and clicking final button to close
[debug] [BaseDriver] Waiting up to 5000 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /element/4520F002-
[MJSONWP] Encountered internal error running command: TypeError: Cannot read property 'getDir' of undefined
at XCUITestDriver.callee$0$0$ (lib/commands/file-movement.js:21:26)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at enqueueResult (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:185:17)
at F (/usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/$.export.js:30:36)
at AsyncIterator.enqueue (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/re