My setup:
- Windows 10 (x64)
- Ruby 2.3.0 (x86) (lapis_lazuli 2.0.0, Watir 6.8.4 and selenium-webdriver 3.6.0)
- Selenium-standalone-server 3.6.0
- Appium desktop 1.2.4 (appium-sever 1.7.1)
- LG Nexus 5 phone (running Android 6.0.1)
Via irb I can do this and it is slow, but works (the browser start and I can navigate to a url)
require 'lapis_lazuli'
include LapisLazuli
url = "http://localhost:4444/wd/hub"
browser :chrome, {
url: url,
browserName: "chrome",
platformName: "Android",
platformVersion: "6.0.1",
deviceName: "Nexus5",
appPackage: "com.android.chrome",
newCommandTimeout: "2000",
javascript_enabled: true,
unicodeKeyboard: true,
resetKeyboard: true
}
browser.goto "www.myurl.com"
But when I just kickoff my test via cucumber
cucumber -f pretty BROWSER=appium DEVICE=disabled -t @mob
I get an error message:
Background: Steps before the mobile account scenarios # features/mobile_account.feature:6
Net::ReadTimeout (Net::ReadTimeout)
./features/support/env.rb:121:in `block in <top (required)>'
Is there anything I can do/set/configure to wait like 30 seconds longer before it does the timeout, or what are the steps I can take to properly debug this issue myself?
Notes
- My ./features/support/env.rb:121 file is a copy of the part where I call for the browser in the irb example
- What I did notice is that the chrome browser is started, only just after I get this timeout message in my command prompt
- DEVICE=disabled I need to use since the lapis_lazuli gem has some setup where it sets the browser size and that is not possible on Android, so I point to a configuration that is empty (this worked before)
- I’ve had this setup working before, just with lower selenium-standalone-server version and gem versions, but since it does work in irb there has to be something I can do/check to make it work again