-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Firefox Page Load fails #8957
Comments
FYI : Edge and Chrome works fine though. |
Could you please try passing this pref? Does that help? // ...
const browser = await playwright[browserType].launch({
headless: false,
firefoxUserPrefs: { "browser.region.network.url": "" }
});
// ... |
@dgozman : While some error logs are not there after using the code you shared, the browser still opens and just stays idle without anything happening on it. Error Log : (FYI : Three of us started on PlayWright and the one with Mac did not face issue right from beginning but myself and another guy with Windows seeing this issue)
|
@sureshahead Thank you for trying that. Since it did not help and we cannot repro this locally, could you please record detailed logs and send them to us? # Linux/macOS
DEBUG=pw:api,pw:browser*,pw:protocol node my-script.js
# Windows with cmd.exe
set DEBUG=pw:api,pw:browser*,pw:protocol
node my-script.js
# Windows with PowerShell
$env:DEBUG="pw:api,pw:browser*,pw:protocol"
node my-script.js |
@dgozman : Please find the log as below after setting the env var you mentioned.
|
@sureshahead we fixed in version 1.15 something related to Firefox on Windows 10 Enterprise. Could you try version 1.15 which got released yesterday? |
@mxschmitt : I did update and run the test with test runner (code below). Still facing issue, logs attached. //hello_world.spec.ts
import { test, expect } from '@playwright/test';
test('Sample Test @sample', async ({ page }) => {
test.setTimeout(20000);
await page.goto('http://whatsmyuseragent.org/');
await page.screenshot({ path: `example.png` });
}); //playwright.config.ts
import { PlaywrightTestConfig } from '@playwright/test';
import { reportFileName } from './src/helpers/utils';
const config: PlaywrightTestConfig = {
timeout: 20000,
globalTeardown:require.resolve('./global-teardown'),
use: {
screenshot: 'only-on-failure',
browserName: 'firefox',
ignoreHTTPSErrors: true,
headless: false,
},
};
export default config; Logs :
|
@sureshahead does it run if you try running |
@aslushnikov : Tried with headless and same error. Below is the error log. `npx playwright test --grep=@sample Running 1 test using 1 worker
pw:api => browserType.launch started +0ms
--- Test output ------------------------------------------------------------------------------------ pw:api => browserType.launch started +0ms Slow test: src\specs\hello_world.spec.ts (50s) 1 failed |
This looks like some configuration of the windows machine that messes things up. If you can come up with a repro that we can run and see things failing, we'll be happy to fix this! Otherwise, this is not actionable and I have to close this. Please feel free to re-file with a repro! |
Context:
Playwright Version: 1.14.1
Operating System: Windows 10 Enterprise (64-bit)
Browser: All but fails to load in Firefox
Code Snippet
Describe the bug
Firefox browser opens but the page doesn't load. Have added debug log and following is what I got. Need support here as am clueless.
The text was updated successfully, but these errors were encountered: