-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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] Click misbehaviour for Chromium in visible area #1240
Comments
@DavertMik Somehow I don't get the "sign up for free" button at all; When I click "Take me to free" - I get re-directed to a regular wetransfer interface :( |
UPDATE You are right, they changed the behavior a bit. Anyway, they use same components so the issue can be reproduced: Here is the video of current flow https://recordit.co/XLmFwCfFZo Here is the script I wrote to reproduce the issue: const playwright = require('playwright');
(async () => {
const browser = await playwright.chromium.launch({
headless: false,
// slowMo: 200,
});
const page = await browser.newPage({
viewport: { width: 1400, height: 500 }
});
await page.goto('https://wetransfer.com');
await page.click('.welcome__agree');
await new Promise((done) => setTimeout(done, 1000));
await page.goto('https://wetransfer.com');
await page.click('.button--free');
await new Promise((done) => setTimeout(done, 5000));
await browser.close();
})(); Video of scripted flow: https://recordit.co/5emcL0zxwO On the video you see that the new tab is opened insted of clicking the button |
@DavertMik nicee, thank you! I was able to reduce this to a nice small test case. For the record: the root cause here is due to the incorrect input dispatching that we do on the chromium-side when dispatching input across iframes. We currently shortcut iframe picking in Instead, we should migrate onto P.S. @DavertMik: you should be able to workaround this bug in chromium with |
This roll includes: - https://crrev.com/759486 - devtools(protocol): Input.dispatchMouseEvent to properly find target widget host Fixes microsoft#1240
This roll includes: - https://crrev.com/759486 - devtools(protocol): Input.dispatchMouseEvent to properly find target widget host Fixes #1240
Context:
Scenario:
Expected behavior:
Current behavior
Videos attached:
P.S. Bug appears to be Chrome-wide. Similar behavior happens in WebDriver & Puppeteer.
Everything works fine in headless mode but crashes once an element is visible.
The text was updated successfully, but these errors were encountered: