How to Connect Device on Wifi in Appium - Bug Reaper

                  Bug Reaper

Lean about Automation Testing,Selenium WebDriver,RestAssured,Appium,Jenkins,JAVA,API Automation,TestNG,Maven, Rest API, SOAP API,Linux,Maven,Security Testing,Interview Questions

Tuesday, 6 February 2018

How to Connect Device on Wifi in Appium


To Connect Device on Wifi in Appium

1.)Connect Device using USB Cable

2.)In CMD type below command

C:\Windows\system32>adb devices
List of devices attached
ZY2227L635      device


C:\Windows\system32>adb usb
restarting in USB mode

3.) Now Find IP of the Android Device
Keep USB Cable Connected
  • Go to Settings -> About phone/tablet -> Status -> IP address.
4.)Type below command in Cmd

C:\Windows\system32>adb tcpip 5555
restarting in TCP mode port: 5555

C:\Windows\system32>adb connect 192.168.0.101:5555 (IP of the device and TCIP Port that u have opened)
connected to 192.168.0.101:5555

C:\Windows\system32>adb devices
List of devices attached
192.168.0.101:5555      device

5.)Now Remove USB Cable

C:\Windows\system32>adb devices
List of devices attached

C:\Windows\system32>adb connect 192.168.0.101:5555
connected to 192.168.0.101:5555

C:\Windows\system32>adb devices
List of devices attached
192.168.0.101:5555      device

Note: Now you can see that above output is showing the device connected in Wifi i.e. 192.168.0.101:5555      device

Now Run the Program(NO Need to change anything in program)

No comments:

Post a Comment