Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Playwright Android Integration #814

Open
emalysz opened this issue Jul 28, 2023 · 0 comments
Open

Support Playwright Android Integration #814

emalysz opened this issue Jul 28, 2023 · 0 comments

Comments

@emalysz
Copy link

emalysz commented Jul 28, 2023

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))}`);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant