Skip to content

[BUG] CSS attribute selector not working with a value with spaces #1996

@thernstig

Description

@thernstig

Context:

  • Playwright Version: 0.15.0
  • Operating System: Ubuntu 18.04.4

Code Snippet

// test is a real attribute on the <a> tag in this case
await page.waitFor('a[test="Test Monitor"]');

Describe the bug

The above snippet fails with:

Evaluation failed: DOMException: Failed to execute 'querySelectorAll' on 'Document': 'Monitor"]' is not a valid selector.

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