macaca-android
Advanced tools
Comparing version 2.0.6 to 2.0.8
@@ -36,3 +36,3 @@ 'use strict'; | ||
} | ||
const result = yield this.proxy.sendCommand('/wd/hub/session/temp/window', 'POST', { | ||
const result = yield this.proxy.sendCommand('/wd/hub/session/:sessionId/window', 'POST', { | ||
name: name | ||
@@ -85,3 +85,3 @@ }); | ||
return this | ||
.proxyCommand('/wd/hub/session/temp/touch/click', 'POST', { | ||
.proxyCommand('/wd/hub/session/:sessionId/touch/click', 'POST', { | ||
element: action.element | ||
@@ -104,3 +104,3 @@ }).then(result => { | ||
if (arrText.length) { | ||
yield this.proxyCommand('/wd/hub/element/temp/value', 'post', { | ||
yield this.proxyCommand('/wd/hub/element/:sessionId/value', 'post', { | ||
value: [arrText] | ||
@@ -110,3 +110,3 @@ }); | ||
} | ||
yield this.proxyCommand('/wd/hub/session/temp/keys', 'post', { | ||
yield this.proxyCommand('/wd/hub/session/:sessionId/keys', 'post', { | ||
value: [keyEvent] | ||
@@ -119,3 +119,3 @@ }); | ||
if (arrText.length) { | ||
yield this.proxyCommand('/wd/hub/element/temp/value', 'post', { | ||
yield this.proxyCommand('/wd/hub/element/:sessionId/value', 'post', { | ||
value: [arrText] | ||
@@ -129,3 +129,3 @@ }); | ||
yield this.adb.shell(`touch ${ADB.ANDROID_TMP_DIR}/macaca-dump.xml`); | ||
var res = yield this.proxyCommand('/wd/hub/session/temp/source', 'get', null); | ||
var res = yield this.proxyCommand('/wd/hub/session/:sessionId/source', 'get', null); | ||
return res.value; | ||
@@ -132,0 +132,0 @@ }; |
@@ -101,6 +101,6 @@ 'use strict'; | ||
if (this.autoAcceptAlerts) { | ||
const acceptUrl = `/wd/hub/session/temp/accept_alert`; | ||
const acceptUrl = `/wd/hub/session/:sessionId/accept_alert`; | ||
yield this.proxy.sendCommand(acceptUrl, 'POST', {}); | ||
} else if (this.autoDismissAlerts) { | ||
const dismissUrl = `/wd/hub/session/temp/dismiss_alert`; | ||
const dismissUrl = `/wd/hub/session/:sessionId/dismiss_alert`; | ||
yield this.proxy.sendCommand(dismissUrl, 'POST', {}); | ||
@@ -304,3 +304,3 @@ } | ||
const result = yield this.proxy.sendCommand('/wd/hub/session/temp/window_handles', 'GET', {}); | ||
const result = yield this.proxy.sendCommand('/wd/hub/session/:sessionId/window_handles', 'GET', {}); | ||
webviews = _.parseWebDriverResult(result); | ||
@@ -307,0 +307,0 @@ |
{ | ||
"name": "macaca-android", | ||
"version": "2.0.6", | ||
"version": "2.0.8", | ||
"description": "Macaca Android driver", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
19376