Skip to content

Commit

Permalink
fix: Update session initialisation arguments (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Aug 22, 2019
1 parent 39fe934 commit 1933c45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions lib/uiautomator2.js
Expand Up @@ -213,8 +213,10 @@ class UiAutomator2Server {
log.debug(`The initialization of the instrumentation process took `
+ `${Math.ceil(seconds * 1000 + nanoseconds / 1000000)}ms`);
await this.jwproxy.command('/session', 'POST', {
firstMatch: [caps],
alwaysMatch: {},
capabilities: {
firstMatch: [caps],
alwaysMatch: {},
}
});
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -35,9 +35,9 @@
"@babel/runtime": "^7.0.0",
"appium-adb": "^7.4.0",
"appium-android-driver": "^4.10.0",
"appium-base-driver": "^3.10.0",
"appium-base-driver": "^3.21.2",
"appium-support": "^2.24.0",
"appium-uiautomator2-server": "^4.0.0",
"appium-uiautomator2-server": "^4.1.0",
"asyncbox": "^2.3.1",
"bluebird": "^3.5.1",
"lodash": "^4.17.4",
Expand Down

0 comments on commit 1933c45

Please sign in to comment.