Skip to content

[BUG] codegen inserts AltGraph key press #5854

@black-silence

Description

@black-silence

Context:

  • Playwright Version: 1.9.2

  • Operating System: Linux

  • Node.js version: v12.18.2

  • Browser: Chromium 90.0.4421.0

  • Extra: pipenv 11.9.0

    System:
    OS: Linux 5.8 Ubuntu 20.10 (Groovy Gorilla)
    Memory: 1.11 GB / 15.30 GB
    Container: Yes
    Binaries:
    Node: 12.18.2 - /usr/bin/node
    npm: 6.14.8 - /usr/bin/npm
    Languages:
    Bash: 5.0.17 - /usr/bin/bash

Code Snippet

Snip generated by codegen:

    # Fill input
    page.fill("input", "playwright")
    # Press AltGraph
    page.press("input", "AltGraph")
    # Fill input
    page.fill("input", "[email protected]")

Describe the bug

When typing an email address into an input, codegen creates a fill command up to the @, then inserts an AltGraph keypress, then continues with the final fill command.

IMO Codegen should try to avoid the extra commands. Without copy-paste the user will always have to use AltGr to write the @ but the browser should not receive it as a separate keypress I guess. A developer could still insert it manually if required for some special case.

Metadata

Metadata

Assignees

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