Skip to content

feat(android): Add android connection implementation #1799

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

siddr-bstack
Copy link

Overview

resolves #1789

This pull request introduces initial support for connecting to Android devices in the Playwright Java client. It represents the first step in a possible series of contributions intended to bring Android automation capabilities—currently available in the Node.js client—to the Java ecosystem.

Although the related issue was recently marked as not planned, I fully understand and respect the project's priorities. That said, I hope this contribution might be helpful as a starting point should there be interest in revisiting the discussion around Android support in the future.

Changes Made

  • Added Android interface and its implementation
  • Added basic implementation of AndroidDevice
  • Made appropriate changes in Connection and Playwright to integrate the android flow.

Motivation

Bringing Android support to the Java client could help broaden Playwright's reach among teams working with mobile platforms and Java-based test infrastructure. The ability to automate Android devices is already supported in the Node.js client and opens up valuable use cases such as:

  • Testing mobile web applications on real or virtual devices
  • Interacting with mobile browsers and apps
  • Promoting consistency across Playwright’s language bindings

This pull request focuses solely on connection support to ensure changes remain focused, reviewable, and easy to build upon incrementally.

Testing

  • Functionality was tested locally on Android emulators and physical Android devices.

Notes

A complete implementation of Android support for the Java client has been developed and tested locally. I’m submitting this first PR with the intention of contributing incrementally and being as respectful as possible of the project’s review process.

I sincerely welcome any feedback, suggestions, or direction on how best to align this work with the project’s goals and standards. Thank you for taking the time to consider this contribution.

@siddr-bstack
Copy link
Author

@microsoft-github-policy-service agree company="Browserstack"

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

Successfully merging this pull request may close these issues.

[Feature]: Android Support for Java
1 participant