Skip to content

New webdriver bidi modules - #4146

Draft
captainbrosset wants to merge 43 commits into
mainfrom
bidi-follow-up
Draft

captainbrosset wants to merge 43 commits into
mainfrom
bidi-follow-up

Conversation

@captainbrosset

@captainbrosset captainbrosset commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

This contains a large number of new features meant to increase our coverage of the WebDriver BiDi BCD keys.
These features seemed standalone enough to warrant their own feature files.

Some features are about entire webdriver modules, others are about specfic commands, others have events in them, etc.
So the granularity isn't consistent. The reason for this is that the features are based on developer use cases, which I think makes more sense than organizing per modules or commands.

There are a few more BCD keys to cover, but the ones here are probably enough for one PR.

@github-actions github-actions Bot added the feature definition Creating or defining new features or groups of features. label Jul 2, 2026
@captainbrosset
captainbrosset changed the base branch from main to bidi September 10, 2026 14:39
Base automatically changed from bidi to main September 15, 2026 16:55
Comment on lines +28 to +29
- webdriver.bidi.bluetooth.disableSimulation
- webdriver.bidi.bluetooth.simulateAdapter

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These keys are not supported anywhere. Should we remove them from this feature so it is at least supported somewhere?

Comment on lines +43 to +71
# baseline: false
# support:
# chrome: "136"
# chrome_android: "136"
# edge: "136"
- webdriver.bidi.browsingContext.downloadWillBegin_event
- webdriver.bidi.browsingContext.downloadWillBegin_event.context_parameter
- webdriver.bidi.browsingContext.downloadWillBegin_event.navigation_parameter
- webdriver.bidi.browsingContext.downloadWillBegin_event.suggestedFilename_parameter
- webdriver.bidi.browsingContext.downloadWillBegin_event.timestamp_parameter
- webdriver.bidi.browsingContext.downloadWillBegin_event.url_parameter

# baseline: false
# support:
# chrome: "155"
# chrome_android: "155"
# edge: "155"
- webdriver.bidi.browsingContext.downloadWillBegin_event.userContext_parameter

# baseline: false
# support:
# firefox: "154"
# firefox_android: "154"
- webdriver.bidi.browsingContext.downloadEnd_event.download_parameter

# ⬇️ Same status as overall feature ⬇️
# baseline: false
# support: {}
- webdriver.bidi.browsingContext.downloadWillBegin_event.download_parameter

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These event keys are preventing Chrome+Edge+Firefox support. We should figure out if this feature makes sense as is, or should be split to better represent the core use cases and browser support story.

Comment on lines +24 to +30
# ⬇️ Same status as overall feature ⬇️
# baseline: false
# support:
# chrome: "126"
# chrome_android: "126"
# edge: "126"
- webdriver.bidi.browsingContext.locateNodes.locator_parameter

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the locator parameter fundamental to the element locators feature? Without this key, the feature would be supported in Chrome+Edge+Firefox.

Comment on lines +23 to +29
# ⬇️ Same status as overall feature ⬇️
# baseline: false
# support:
# chrome: "137"
# chrome_android: "137"
# edge: "137"
- webdriver.bidi.emulation.setGeolocationOverride.error_parameter

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This key is preventing this feature from being supported in Firefox. Does it belong here? Is it part of the core geolocation emulation use case?

Comment on lines +191 to +199
# baseline: false
# support:
# chrome: "133"
# chrome_android: "133"
# edge: "133"
- webdriver.bidi.network.beforeRequestSent_event.initiator_parameter
- webdriver.bidi.network.beforeRequestSent_event.request_parameter
- webdriver.bidi.network.fetchError_event.errorText_parameter
- webdriver.bidi.network.fetchError_event.request_parameter

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feature is very large. Up until this set of keys, the feature is supported across Chrome, Edge, and Firefox.
Starting from here, and down, only some of the browsers are supported.
We need to think about maybe splitting the feature, making sure it correctly represents the core network interception use case and browser support story.

Comment on lines +33 to +39
# ⬇️ Same status as overall feature ⬇️
# baseline: false
# support:
# chrome: "143"
# chrome_android: "143"
# edge: "143"
- webdriver.bidi.permissions.setPermission.embeddedOrigin_parameter

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This key is preventing this feature from being supported in Firefox. Does it belong here? Is it part of the core permissions use case?

Comment on lines +29 to +36
# baseline: false
# support:
# chrome: "140"
# chrome_android: "140"
# edge: "140"
- webdriver.bidi.emulation.setScreenOrientationOverride.contexts_parameter
- webdriver.bidi.emulation.setScreenOrientationOverride.screenOrientation_parameter
- webdriver.bidi.emulation.setScreenOrientationOverride.userContexts_parameter

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These keys are preventing the feature from being supported in Firefox. Do they belong here? Are they part of the core screen emulation use case?

Comment on lines +74 to +80
# baseline: false
# support:
# chrome: "126"
# chrome_android: "126"
# edge: "126"
- webdriver.bidi.browsingContext.userPromptClosed_event.type_parameter.beforeunload
- webdriver.bidi.browsingContext.userPromptOpened_event.type_parameter.beforeunload

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this parameter type core to the user prompts use case? It's preventing this feature from being supported in Firefox. We should decide whether it makes sense in this feature or it is a later addition that would be better represented elsewhere.

@captainbrosset

Copy link
Copy Markdown
Contributor Author

I cleaned up this PR. There are 28 new features here.
I'll need someone with deeper WebDriver knowledge to help review.

Some features are about entire webdriver modules, others are about specfic commands, others have events in them, etc. So the granularity isn't consistent. The reason for this is that the features are based on developer use cases, which I think makes more sense than organizing per modules or commands.

I left comments throughout the PR for the things I think are most important now, which is verifying that certain keys which are holding broader browser support really do belong in the corresponding features.

@whimboo would you be able to take a look?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature definition Creating or defining new features or groups of features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant