Тестирую этот проект GitHub - aerokube/demo-tests: A set of demonstration tests
Код поправил
@Before
public void openDriver() throws Exception {
Proxy proxy = new Proxy();
proxy.setSslProxy("http://proxy:3128");
final DesiredCapabilities browser = DesiredCapabilities.chrome();
browser.setCapability("deviceName", "android");
browser.setCapability("version", "6.0");
browser.setCapability("appPackage", "com.android.chrome");
browser.setCapability("appActivity", "com.google.android.apps.chrome.Main");
browser.setCapability("proxy", proxy);
browser.setCapability("enableVideo", true);
browser.setCapability("enableLog", true);
browser.setCapability("enableVNC", true);
driver = new RemoteWebDriver(new URL(
"http://localhost:4444/wd/hub" //Replace with correct host and port
), browser);
}
Пишет:
Tests in error:
browserTest(com.aerokube.selenoid.DemoTest): Requested environment is not available (WARNING: The server did not provide any stacktrace information)
Как исправить ошибку?