Skip to content

Codegen/Recorder: not all clicks are being actioned nor recorded #29067

@Thomas-Nagel

Description

@Thomas-Nagel

Steps to reproduce

  1. start “record new” in VS Code or codegen via cli npx playwright codegen
  2. navigate to google.com (it opens chromium on my machine)
  3. click on accept or reject cookies button
    -> the click is not actioned - and not recorded

A click e.g. on “More options” is actioned and recorded.

The locators are correctly shown, adding a check for "visibility" and other options via the "locator toolbar" is working fine

Created code:

import { test, expect } from '@playwright/test';

test('test', async ({ page }) => {
await page.goto('https://www.google.com/');
});

Setup:
Playwright typescript 1.41 (as far as I can recall, it was no issue with 1.40.1)
Chromium Version 121.0.6167.57 (Developer Build) (64-bit)
MS Windows 10 and 11

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions