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

Connect Android devices to adb wirelessly. #19

Open
garg3133 opened this issue Feb 5, 2024 · 2 comments · May be fixed by #29
Open

Connect Android devices to adb wirelessly. #19

garg3133 opened this issue Feb 5, 2024 · 2 comments · May be fixed by #29

Comments

@garg3133
Copy link
Member

garg3133 commented Feb 5, 2024

  • Document the process to connect to the android devices wirelessly, so that we don't need to connect an Android device using USB Cable to automate it.
  • Add the same ability in the tool itself, which can be triggered by running npx @nightwatch/mobile-helper android --connect --wireless command, which will then prompt for the Android device's IP address, port and pairing code and set up a wireless connection.

During this process, we should also guide users on the steps they should follow on their Android Device to establish a connection.

Refer: https://developer.android.com/tools/adb#wireless-android11-command-line

@Biki-das
Copy link
Contributor

Biki-das commented Feb 24, 2024

@garg3133 tried to dig this one up, was able to write the nodejs script that can do the same, only thing now i need to dig dive in how to add this up with the nightwatch commands below how the script to connect adb is working.

is the file Is where this has to be configured for all the logic for the adb? could you provide some pointers on the same?

Screen.Recording.2024-02-24.at.9.50.33.PM.mov

@garg3133
Copy link
Member Author

@Biki-das Cool. Yes, that file is the entry point for the android command, but you can have the logic for wireless pairing of device in a separate file as well, and then link it up in that file.

@Biki-das Biki-das linked a pull request Feb 28, 2024 that will close this issue
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 a pull request may close this issue.

2 participants