Skip to content

Commit 324d094

Browse files
chore: Tune contextUpdated event generation (#850)
1 parent 8744e58 commit 324d094

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

docs/bidi.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,31 @@ These events might be disabled if the `appium:skipLogcatCapture` capability is e
2020
Events are emitted for both emulator and real devices. Each event contains a single Appium server log line.
2121
Events are always emitted with the `NATIVE_APP` context.
2222
Events are only emitted if the `get_server_logs` server security feature is enabled.
23+
24+
## appium:uiautomator2.contextUpdate
25+
26+
This event is emitted upon the context change, either explicit or implicit.
27+
The event is always emitted upon new session initialization.
28+
See the [GitHub feature ticket](https://github.com/appium/appium/issues/20741) for more details.
29+
30+
### CDDL
31+
32+
```cddl
33+
appium:uiautomator2.contextUpdated = {
34+
method: "appium:uiautomator2.contextUpdated",
35+
params: {
36+
name: text,
37+
type: "NATIVE" / "WEB",
38+
},
39+
}
40+
```
41+
42+
The event contains the following params:
43+
44+
### name
45+
46+
Contains the actual name of the new context, for example `NATIVE_APP`.
47+
48+
### type
49+
50+
Either `NATIVE` or `WEB` depending on which context is currently active in the driver session.

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.3",
60-
"appium-android-driver": "^9.14.2",
60+
"appium-android-driver": "^9.14.7",
6161
"appium-uiautomator2-server": "^7.0.24",
6262
"asyncbox": "^3.0.0",
6363
"axios": "^1.6.5",

0 commit comments

Comments
 (0)