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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Firefox dev tools limited by viewport width/height #804

Closed
aesyondu opened this issue Feb 2, 2020 · 1 comment
Closed

[BUG] Firefox dev tools limited by viewport width/height #804

aesyondu opened this issue Feb 2, 2020 · 1 comment

Comments

@aesyondu
Copy link
Contributor

aesyondu commented Feb 2, 2020

Context:

  • PlayWright Version: 0.10.0
  • Operating System: Mac OS X - 10.14.6
  • Extra: Node v13.7.0

Code Snippet

const playwright = require("playwright");

(async () => {
    for (const browserType of ["chromium", "firefox", "webkit"]) {
        const browser = await playwright[browserType].launch({
            headless: false,
        })
        const context = await browser.newContext({})
        const page = await context.newPage("http://localhost:8080")

        // await browser.close()
    }
})();

Describe the bug

When using non-headless "firefox", dev tools width/height limited by viewport. Works ok on "chromium" and "webkit".

Firefox:

firefox


Chromium:

chromium

@dgozman
Copy link
Contributor

dgozman commented Feb 27, 2020

This is a side-effect of setting page viewport size. The workaround is to undock developer tools into a separate window (from the ... menu).

@dgozman dgozman closed this as completed Feb 27, 2020
sand4rt pushed a commit to sand4rt/playwright that referenced this issue Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants