Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support disabling global context and page #326

Open
nickgarlis opened this issue Feb 27, 2020 · 1 comment
Open

Support disabling global context and page #326

nickgarlis opened this issue Feb 27, 2020 · 1 comment

Comments

@nickgarlis
Copy link

馃殌 Feature Proposal

Apologies if there is already a way to do this. It looks like this preset spawns a new context and page for each test. Is there a way to disable this behavior ?

Motivation

There are some cases when I am testing with an unknown number of contexts and pages. This is when I have to manage their creation on my own.

Example

Maybe by setting something like that into the config file ?

module.exports = {
  page: 'none',
  browserContext: 'none'
}

Pitch

I think it would be useful for those who only need a global browser instance across tests. I'd like to hear your thoughts. I'd be happy to help by opening a PR for it.

@UziTech
Copy link
Contributor

UziTech commented Apr 10, 2021

A PR would be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants