Skip to content

[Feature] Browser event "context" #1678

@jperl

Description

@jperl

Feature Request:

A browser event: 'context' emitted when a new context is created.

browser.on("context", (context) => context.addInitScript(...));

Our Use Case:

We use the browser context to capture logs and video artifacts.

Since there is no API to listen for new contexts, we require users to call qawolf.register(context) in their test code when they create a new context.

If we could listen for a context event we can manage this registration logic internally in our launch helper.

Other Use Cases:

This would be valuable to set up global init scripts and new page listeners.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions