mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -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,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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user