Skip to content

Support Playwright Android Integration #814

Open
@emalysz

Description

@emalysz

Is your feature request related to a problem? Please describe.
Playwright has experimental support for Android: https://playwright.dev/docs/api/class-android
Cloud providers such as BrowserStack provide real Android device support for Playwright: https://www.browserstack.com/blog/introducing-android-playwright/
Users should be able to test on mobile devices.

Describe the solution you'd like
Extend the Jest runner to accept a real Android device

Describe alternatives you've considered
n/a

Additional context
It seems like this function handles connection to the remote browser. We should add a check to see if it should be called instead on the _android class. Here is a snippet of how we initialize an Android connection with the playwright runner:

const { _android } = require('playwright');
...
const device = await _android.connect(`wss://cdp.browserstack.com/playwright?caps=${encodeURIComponent(JSON.stringify(caps))}`);

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