We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Context:
Code Snippet
(async () => { for (const browserType of ['chromium']) { const browser = await playwright[browserType].launch(); console.log(browser.contexts()); await browser.close(); } })();
Describe the bug
https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontexts says:
Returns an array of all open browser contexts. In a newly created browser, this will return a single instance of BrowserContext.
However, in a newly created browser it returns an empty array.
The text was updated successfully, but these errors were encountered:
docs: fix browser.contexts() description
browser.contexts()
4755a0b
Fixes microsoft#1212
Successfully merging a pull request may close this issue.
Context:
Code Snippet
Describe the bug
https://github.com/microsoft/playwright/blob/master/docs/api.md#browsercontexts says:
However, in a newly created browser it returns an empty array.
The text was updated successfully, but these errors were encountered: