Appium Installation on Windows with Real Android Device 9

Appium Installation on Windows with Real Android Device 9 13 min

Concept of DesiredCapabilities, Appium Desired Capabilities and Mobile Capabilities, Launch Android Application using Appium Code, AndroidDriver in Appium

QA Section

Speak Your Mind


Susheela Beniwal

I am not able to launch application on phone

Reply

Saraswati

Please ignore previous comment

Reply

Saraswati

Hi I am trying to launch the app but getting below exception. Please let me know what is wrong in this org.openqa.selenium.WebDriverException: Connection refused: no further information Build info: version: 'unknown', revision: 'unknown', time: 'unknown' System info: host: ' ', ip: ' ', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '15.0.2' Driver info: driver.version: AndroidDriver at io.appium.java_client.remote.AppiumCommandExecutor.lambda$6(AppiumCommandExecutor.java:259) at java.base/java.util.Optional.orElseGet(Optional.java:362) at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:258) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:41) at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1) at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213) at io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:338) at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131) at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:37) at io.appium.java_client.AppiumDriver.(AppiumDriver.java:89) at io.appium.java_client.AppiumDriver.(AppiumDriver.java:99) at io.appium.java_client.android.AndroidDriver.(AndroidDriver.java:96) at LaunchMakeMyTrip.main(LaunchMakeMyTrip.java:25) Caused by: java.net.ConnectException: Connection refused: no further information at java.base/sun.nio.ch.Net.pollConnect(Native Method) at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:660) at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:549) at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:333) at java.base/java.net.Socket.connect(Socket.java:648) at okhttp3.internal.platform.Platform.connectSocket(Platform.java:129) at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:245) at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:165) at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:257) at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:135) at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:114) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)

Reply

Ken

Hi I was trying to launch the app I got this error: "Could not find 'adb.exe' .........." I'm pretty sure I have adb.exe on the platform-tools location

Reply

Trainer

This tutorial is for WIndows. Please use windows. Or you can also use VM and install windows in it.

Reply
  • Vidhyullatha Ganji, email: g.vidhyullatha@gmail.com

    Yep, i knew its for windows. For setup Appium in mac, i referred video tutorial - 12 (part1 and part2). which is almost similar to windows, except download of few more installations required like (homebrew and node etc..). In the above answer, which you replied, you mean the Android device not required to be connected to eclipse in macboook. Because in end of part-1 of tutorial -12 you mentioned the device need to connected and should be able to get detect in the eclipse, but in video it does not have content showing how to connect, and if any errors faced are not shown...that is the reason i am checking. Please reply if any solution...

    Reply