-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Feature] Implement launchServer and connect for Android #17538
Comments
This was referenced Sep 28, 2022
I see this has been closed as completed, does this mean it was accepted? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Playwright Android currently lacks the
connect
andlaunchServer
methods that enable the client-server architecture for the Playwright Desktop sessions.This will enable users to launch a server on a remote machine that has mobile devices connected to it and the users will be able to connect to this from another machine.
We have raised a POC PR for this with a working code to enable the methods mentioned above. The methods are similar to the methods being used for Playwright Desktop. However, there are still a few differences.
The
connect
method requires mainly a web socket endpoint (which can be retrieved by launching the server) and returns an instance of AndroidDevice through which the users can execute commands and run their scripts.The
launchServer
method initializes a server that communicates with the client and delegates the instructions to the connected AndroidDevice. The users can get the web socket endpoint of the server after launching it and callingwsEndpoint()
on the server instance. We have also added an option ofdeviceSerialNumber
which tries to connect with the device whose serial number is provided.Note:
We are happy to collaborate on this with your team and eager to listen to your thoughts on this.
The text was updated successfully, but these errors were encountered: