Skip to content

[Question] Are events (such as clicks and keystrokes) performed by Playwright "Synthetic" or "Native" events? #19445

Description

@atgehrhardt-stripe

Does playwright use synthetic events or is it using native events?

I am attempting to build some tools that allow testing against a production site, however, the site will lock accounts for anything flagged as "botting/non-human". We generally flag systems using synthetic events, as we can simply monitor these and stop them when necessary, but any attempts to obscure the nature of a script (ie pretend to be human) can, and will cause issues.

To expand a bit, Selenium for example (to my knowledge) uses its WebDriver to send an http request to Chrome via DevTools containing the appropriate JavaScript to perform the action, thus all clicks and keystrokes are synthetic and not attempting to hide the fact it is simply executing JS on the page.

I want to ensure that using this testing suite will send synthetic events such as clicks and keystrokes and does not attempt to use native events to 'seem human'.

Any insight here would be greatly appreciated.

Thank you for the help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions