I have Windows 10 - 64, Firefox 61.0.2, Java installed. I'm executing my tests with selenium-grid and selenium-server-standalone-3.11.0.jar, and geckodriver 21.0, but when I run it, the test shows the following error:
org.openqa.selenium.WebDriverException: Error forwarding the new session cannot find : Capabilities {acceptInsecureCerts: true, browserName: firefox, platform: WINDOWS, version: 61.0.2}
My code:
private void createBrowserInstance() throws MalformedURLException {
switch (environmentHandler.getTestBrowser().toLowerCase()) {
case "firefox":
FirefoxOptions firefox = new FirefoxOptions();
firefox.setCapability("marionette", false);
browCapab = DesiredCapabilities.firefox();
browCapab.setBrowserName("firefox");
browCapab.setPlatform(Platform.WINDOWS);
browCapab.setVersion("61.0.2");