Switch to Firefox selenium driver, since ChromeDriver throws error on 1

test case without obvious reason
This commit is contained in:
Alexey Andreev 2015-10-10 13:37:34 +03:00
parent 36760a2a6e
commit 03e3823e8d

View File

@ -47,7 +47,7 @@ public class SeleniumRunStrategy implements TestRunStrategy {
@Override @Override
public void beforeThread() { public void beforeThread() {
RemoteWebDriver driver = new RemoteWebDriver(url, DesiredCapabilities.chrome()); RemoteWebDriver driver = new RemoteWebDriver(url, DesiredCapabilities.firefox());
webDriver.set(driver); webDriver.set(driver);
} }
@ -71,9 +71,11 @@ public class SeleniumRunStrategy implements TestRunStrategy {
log.error("Error occured running test " + testCase.getTestMethod(), e); log.error("Error occured running test " + testCase.getTestMethod(), e);
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
List<Object> errors = (List<Object>) js.executeScript("return window.jsErrors;"); List<Object> errors = (List<Object>) js.executeScript("return window.jsErrors;");
if (errors != null) {
for (Object error : errors) { for (Object error : errors) {
log.error(" -- additional error: " + error); log.error(" -- additional error: " + error);
} }
}
return null; return null;
} }
} }