Всем привет! Изучаю selenoid не удается запусти тесты под андройд, тесты не запускаются из-за ошибки: org.openqa.selenium.SessionNotCreatedException: wait: http://172.18.0.4:4444/wd/hub does not respond in 2m0s.
- Solenoid запускаю командой: ./cm selenoid start args --args “-session-attempt-timeout 2m -service-startup-timeout 2m”
- Solenoid-ui запускаю командой /. cm selenoid-ui start
- browsers.json:
{
“android”: {
“default”: “10.0”,
“versions”: {
“10.0”: {
“image”: “selenoid/android:10.0”,
“port”: “4444”,
“path”: “/wd/hub”
},
“9.0”: {
“image”: “selenoid/android:9.0”,
“port”: “4444”,
“path”: “/wd/hub”
}
}
}
} - Capabilities :
device.setCapability(“deviceName”, “android”);
device.setCapability(“version”, “10.0”);
device.setCapability(“app”, “http://ci.example.com/game2048.apk”);
device.setCapability(“appPackage”, “com.androbaby.game2048”);
device.setCapability(“appActivity”, “com.androbaby.game2048.MainActivity”);
Map<String, Object> selenoidOptions = new HashMap<>();
selenoidOptions.put(“enableVNC”, true);
device.setCapability(“selenoid:options”, selenoidOptions);
URL = http://127.0.0.1:4444/wd/hub" - Логи selenoid’a:
[-] [INIT] [Loading configuration files…]
[-] [INIT] [Loaded configuration from /etc/selenoid/browsers.json]
[-] [INIT] [Video Dir: /opt/selenoid/video]
[-] [INIT] [Using Docker API version: 1.41]
[-] [INIT] [Timezone: UTC]
[-] [INIT] [Listening on :4444]
[-] [NEW_REQUEST] [unknown] [172.18.0.1]
[-] [NEW_REQUEST_ACCEPTED] [unknown] [172.18.0.1]
[0] [LOCATING_SERVICE] [android] [10.0]
[0] [USING_DOCKER] [android] [10.0]
[0] [CREATING_CONTAINER] [selenoid/android:10.0]
[0] [STARTING_CONTAINER] [selenoid/android:10.0] [d00470d3f373aea83c573b5d8e93dbb87010a39d44cf8799471970c569c8482c]
[0] [CONTAINER_STARTED] [selenoid/android:10.0] [d00470d3f373aea83c573b5d8e93dbb87010a39d44cf8799471970c569c8482c] [0.84s]
[0] [REMOVING_CONTAINER] [d00470d3f373aea83c573b5d8e93dbb87010a39d44cf8799471970c569c8482c]
[0] [CONTAINER_REMOVED] [d00470d3f373aea83c573b5d8e93dbb87010a39d44cf8799471970c569c8482c]
[0] [SERVICE_STARTUP_FAILED] [wait: http://172.18.0.4:4444/wd/hub does not respond in 2m0s]
В чем может быть проблема?