Skip to content

[browser] Provide access to Playwright's Keyboard classes in browser mode #4918

@motss

Description

@motss

Clear and concise description of the problem

The experimental browser mode currently allows users to choose a list of providers (Webdriver.io, Playwright) to run their tests on various browsers supported by their chosen provider.

However, there isn't a way to reference the current page context in a test suite to call some of the API classes offered by Playwright, e.g. the Playwright's Keyboard class allows users to simulate keyboard inputs as if they were generated from a real keyboard.

Suggested solution

  1. To provide access to the current page context for API classes provided by Playwright
  2. To provide an API to send commands to Playwright, e.g. sendKeys command from web-test-runner

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfeat: browserIssues and PRs related to the browser runner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions