mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Switch to Firefox selenium driver, since ChromeDriver throws error on 1
test case without obvious reason
This commit is contained in:
parent
36760a2a6e
commit
03e3823e8d
|
@ -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,8 +71,10 @@ 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;");
|
||||||
for (Object error : errors) {
|
if (errors != null) {
|
||||||
log.error(" -- additional error: " + error);
|
for (Object error : errors) {
|
||||||
|
log.error(" -- additional error: " + error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user