Skip to content

[Bug]: "Assert that element contains" text box closes when clicking into text field #38020

@jeff-host

Description

@jeff-host

Version

1.56.1

Steps to reproduce

  1. npx playwright codegen
  2. Navigate to website (ex. google.com)
  3. Click "Assert text" from toolbar
  4. Click on highlighted text on website
  5. Click in the "Assert that element contains" text box

Expected behavior

The "Assert that element contains" text box remains open and I'm able to edit the text in the text field.

Actual behavior

The "Assert that element contains" text box closes.

Image

Additional context

No response

Environment

System:
    OS: macOS 15.6.1
    CPU: (10) arm64 Apple M4
    Memory: 806.36 MB / 24.00 GB
  Binaries:
    Node: 21.7.1 - /opt/homebrew/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 10.8.3 - /opt/homebrew/bin/npm
  IDEs:
    VSCode: 1.105.1 - /usr/local/bin/code
  Languages:
    Bash: 3.2.57 - /bin/bash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions