I have run the selenium grid 3.141.59 hub and node successfully, node is connected to hub but when I run the following code, it's not launching the chrome browser, and an error displayed in console
Exception in thread "main" org.openqa.selenium.WebDriverException: Unable to parse remote response: <!DOCTYPE html>
package grid;
import java.io.File;
import java.net.URL;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.Platform;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
public class gridChorme {
static WebDriver driver;
static String hubURL;
public static void main(String[] args) throws Throwable {
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setBrowserName("chorme");
capabilities.setPlatform(Platform.WIN10);
ChromeOptions options = new ChromeOptions();
options.merge(capabilities);
driver = new RemoteWebDriver(new URL(hubURL), options);
driver.manage().deleteAllCookies();
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
driver.manage().window().maximize();
driver.findElement(By.name("q")).sendKeys("Love");
driver.findElement(By.xpath("//div[@class='FPdoLc tfB0Bf']//input[@name='btnK']")).click();
driver.close();
}
}