Skip to content

[BUG] Click misbehaviour for Chromium in visible area #1240

@DavertMik

Description

@DavertMik

Context:

  • Playwright Version: 0.11.1
  • Operating System: Mac
  • Using interfactive pause in CodeceptJS (hope not that much related)
  • React on the frontend. I assume this is related

Scenario:

  • open https://wetransfer.com first time
  • agree on terms
  • reload page
  • you will see splash screen with 3 buttons "Sign up for free", "Use Pro" and "No thanks"
  • click "Sign up for free button"

Expected behavior:

  • a splash panel from right with sign up for will appear

Current behavior

  • when clicked manually in chrome = same as expected
  • when clicked in firefox = same as expected
  • when click in webkit = same as expected
  • when clicked in headless chromium = same as expected
  • when clicked in chromium BUT the button is in visible area - button is not clicked but background element receives a click and a new tab with a post is opened

Videos attached:

  1. Executing this test in Firefox.- expected behavior: https://recordit.co/Q1z7lw916a
  2. Executing in Chromium - clicking on element triggers event for background (BUG), clicking manually works as expected https://recordit.co/qtix0XpMoc
  3. Executing in Chromium but when the button is not inside viewport - expected behavior https://recordit.co/cKGdq7HfNr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    browser-chromiumupstreamThis is a bug in something playwright depends on, like a browser.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions