-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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]: NewTab doesn't work properly with Chrome on 1.45 with --disable-web-security #31431
Comments
I had to modify the script because
test("1.45 debug", async ({ page }) => {
await page.goto("https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_link_target", { waitUntil: "domcontentloaded" });
// await page.getByText("Accept all & visit the site").click();
const page1Promise = page.context().waitForEvent("page");
await page.frameLocator('iframe[name="iframeResult"]').getByRole("link", { name: "Visit W3Schools.com!" }).click();
const page1 = await page1Promise;
// URL is printed
console.log(page1.url());
// Expect stuck
await expect(page1).toHaveURL(/w3schools/, { timeout: 2_000 });
// locator() doesn't work
await expect(page1.getByText("Learn to Code")).toBeVisible({ timeout: 2_000 });
}); And it works for me on all browsers:
|
On my windows pc this all worked, as it did for @pavelfeldman . On macos and in the docker container I was able to replicate @unickq 's issue. |
I'm on macOS 14.5 for reference. |
I am facing a similar problem where in case of popups I am not getting title of the popup
The problem is that I am not able to reproduce it in a standalone project but I am able to consistently face this problem in my company repo where we extend the test. I will comment again if I am able to reproduce it in a standalone project. For now I am sending it here to see if we can get any inputs. Edit1: Edit2: |
That's interesting; I can't reproduce it anymore. Because of 127.0.6533.5 -> 127.0.6533.17? But it's there with |
I can repro, disabling web security skips some of the JS context-related signals so Playwright misbehaves. Why are you disabling the web security? |
For me, it came when we migrated from puppeteer to playwright and we did disable web security in chromium to disable csp and cors. |
Are you a testing solution or a scraping solution? If you are a testing solution, you are not really testing what your users will get. |
Testing solution. Yeah Now since the situation is better now. Thanks to playwright 🙌 , we have removed |
Version
1.45.0
Steps to reproduce
Expected behavior
Works as it worked on 1.44.1
Actual behavior
It gets stuck
Additional context
Environment
UPD:
--disable-web-security
The text was updated successfully, but these errors were encountered: