Skip to content

Commit

Permalink
feat: Add a BiDi event upon context change (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored Nov 18, 2024
1 parent 4da9a73 commit fabbc8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,11 @@ class AndroidUiautomator2Driver
this.log.info(`Setting auto webview to context '${viewName}' with timeout ${timeout}ms`);
await retryInterval(timeout / 500, 500, this.setContext.bind(this), viewName);
}

// We would like to notify about the initial context setting
if (await this.getCurrentContext() === this.defaultContextName()) {
await this.notifyBiDiContextChange();
}
}

async startUiAutomator2Session(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
},
"dependencies": {
"appium-adb": "^12.7.0",
"appium-android-driver": "^9.13.0",
"appium-android-driver": "^9.14.0",
"appium-uiautomator2-server": "^7.0.24",
"asyncbox": "^3.0.0",
"axios": "^1.6.5",
Expand Down

0 comments on commit fabbc8d

Please sign in to comment.