Skip to content

Commit fabbc8d

Browse files
feat: Add a BiDi event upon context change (#838)
1 parent 4da9a73 commit fabbc8d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/driver.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,11 @@ class AndroidUiautomator2Driver
651651
this.log.info(`Setting auto webview to context '${viewName}' with timeout ${timeout}ms`);
652652
await retryInterval(timeout / 500, 500, this.setContext.bind(this), viewName);
653653
}
654+
655+
// We would like to notify about the initial context setting
656+
if (await this.getCurrentContext() === this.defaultContextName()) {
657+
await this.notifyBiDiContextChange();
658+
}
654659
}
655660

656661
async startUiAutomator2Session(

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
},
5858
"dependencies": {
5959
"appium-adb": "^12.7.0",
60-
"appium-android-driver": "^9.13.0",
60+
"appium-android-driver": "^9.14.0",
6161
"appium-uiautomator2-server": "^7.0.24",
6262
"asyncbox": "^3.0.0",
6363
"axios": "^1.6.5",

0 commit comments

Comments
 (0)