Skip to content

Commit cefd205

Browse files
authored
feat: let mobile: getContexts gives waitForWebviewMs (#960)
1 parent 3872085 commit cefd205

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,13 @@ buttonState | int | no | Button state id, `0` by default | 1
655655

656656
### mobile: getContexts
657657

658-
Retrieves a webviews mapping based on CDP endpoints
658+
Retrieves a WebViews mapping based on CDP endpoints
659+
660+
#### Arguments
661+
662+
Name | Type | Required | Description | Example
663+
--- | --- | --- | --- | ---
664+
waitForWebviewMs | number | no | Tells Espresso driver for how long (in milliseconds) to wait for web view(s) to appear since Espresso driver v2.30.0. If a Chrome process running on the device under test fails to create a connection to the devtools socket, then the chromedriver will rise an error similar to `failed to connect to socket 'localabstract:chrome_devtools_remote'` in Espresso driver. It could cause no WebViews found result, although a couple of retrials may fix it. This argument helps to keep trying to get WebView(s) up to the given time milliseconds as one command call. This issue tends to occur Chrome v115 and over so far. [issues#19251](https://github.com/appium/appium/issues/19251) contains more details. If set to `0`ms (the default value), then Espresso driver only checks the WebView(s) availability once. | 10000
659665

660666
#### Returns
661667

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
],
7373
"dependencies": {
7474
"appium-adb": "^11.0.1",
75-
"appium-android-driver": "^7.3.0",
75+
"appium-android-driver": "^7.4.0",
7676
"asyncbox": "^3.0.0",
7777
"bluebird": "^3.5.0",
7878
"lodash": "^4.17.11",

0 commit comments

Comments
 (0)