Open getyourbots opened 8 years ago
maybe something wrong with your port: http://localhost:1235 why you connecting to 1235 to hub if you have hub on 4444 port?
I am having the same problem. It keeps saying:
INFO: Can't connect to Selendroid server, assuming it is not running.
Device: Nexus 5X Android 6.0.1
I've been trying to get selendroid working in the past days, and looks like I'm closer and closer each day, to get it working.
I'm trying to automate some actions in a browser, using selendroid. I managed to get the server going. If I go to http://localhost:4444/wd/hub/status, here's the response:
{"value":{"os":{"name":"Linux","arch":"amd64","version":"4.6.4-1-ARCH"},"build":{"browserName":"selendroid","version":"0.17.0"},"supportedDevices":[{"emulator":false,"screenSize":"(480, 800)","serial":"47900eb4d5dc9100","platformVersion":"17","model":"GT-I8200","apiTargetType":"google"}],"supportedApps":[{"mainActivity":"io.selendroid.androiddriver.WebViewActivity","appId":"io.selendroid.androiddriver:0.17.0","basePackage":"io.selendroid.androiddriver"}]},"status":0}
Showing that the device is also recognized. I'm using a real phone, connected through USB. Everything looks good, but when I start the test script, the phone starts the application, but selendroid server it's telling that it cannot connect.
The output of selendroid is shown below. There is more, but here is from where it starts.
If I leave it running, it's just staying in a loop, keeps showing that error, probably trying to reconnect.
I'm using the latest selendroid version, selendroid-standalone-0.17.0-with-dependecies, got it from their website: http://selendroid.io
The test script I'm running is written in python. Here it is:
My operating system is archbang, Linux archbang 4.6.4-1-ARCH. Android phone version 4.2.2 and phone is Samsung S3 mini.
Starting the selendroid server with the app argument, gets me one step further. Now, I see on the phone, the test app activity (default test app from selendroid.io), with the buttons and textfields.
Selendroid server tries to start the server (or connect to it), for few time on different ports, and stops by throwing the timeout connection.
I'm trying to automate the browser, on the phone, by sending commands through python. Any suggestions on how to solve this, are appreciated !