Skip to content

[🚀 Feature]: WebDriver-BiDI: Support for "Preload Scripts" #11979

@whimboo

Description

@whimboo

Feature and motivation

WebDriver BiDi supports the "bootstrap script" feature under the name "Preload Scripts" now. Given that this was a highly requested feature in the past it would be great to see it implemented in Selenium.

WebDriver BiDi spec: https://w3c.github.io/webdriver-bidi/#preload-scripts

Details: Once such preload scripts have been added they are automatically evaluated or installed for each and every newly created browsing context. With their help eg. Selenium atoms could easily be installed without having to transfer them for each and every operation.

Usage example

Each of the required commands has a related WebDriver test. Those can be found at:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions