[grid] Replacing Chrome with HtmlUnit in tests
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.json.Json;
import org.openqa.selenium.json.JsonInput;
+import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import java.io.BufferedReader;
@@ -87,7 +88,7 @@ private void runTest(int nodesCount, int howMany,
Hub hub = null;
List<RemoteWebDriver> drivers = new ArrayList<>();
try {
- hub = GridTestHelper.prepareTestGrid(new ChromeOptions(), nodesCount);
+ hub = GridTestHelper.prepareTestGrid(DesiredCapabilities.htmlUnit(), nodesCount);
drivers = createSession(howMany, hub);
Map<String, Object> sessions = getSessions(hub);
assertions.accept(sessions);
@@ -112,7 +113,7 @@ private void runTest(int nodesCount, int howMany,
return new ArrayList<>();
}
for (int i = 0; i < howMany; i++) {
- drivers.add(new RemoteWebDriver(url, new ChromeOptions()));
+ drivers.add(new RemoteWebDriver(url, DesiredCapabilities.htmlUnit()));
}
return drivers;
