playwright: [BUG] Firefox doesnt open

Context:

  • Playwright Version: ^0.15.0
  • Operating System: Windows
  • Node version: v12.16.1.
  • Browser: Firefox
const playwright = require("playwright");
async function main() {
    const browser = await playwright.firefox.launch({headless:false});
    const context = await browser.newContext();
    const page = await context.newPage();
    await page.goto("https://www.google.com");
}
main()

Using firefox doesnt work for me, it always opens a blank page and throws that error: UnhandledPromiseRejectionWarning: Error: NS_BINDING_ABORTED while navigating to https://www.google.com

When I try it with Chromium it works perfectly

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 10
  • Comments: 15 (5 by maintainers)

Most upvoted comments

If someone else gets the error, set a timeout of 300-400ms before getting the page and it will work