System.setProperty("webdriver.chrome.driver", "/usr/bin/google-chrome"); final ChromeOptions chromeOptions = new ChromeOptions(); //chromeOptions.addArguments("headless"); chromeOptions.addArguments("window-size=1200x600"); final DesiredCapabilities desiredCapabilities = new DesiredCapabilities(); desiredCapabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions); final URL url = new URL("https://the-internet.herokuapp.com/login"); final WebDriver driver = new RemoteWebDriver(url, desiredCapabilities);
does not work:
Exception in thread "main" org.openqa.selenium.WebDriverException: Unable to parse remote response:
Not found
Any idea why?
Next: How to connect to Chromium Headless using selenium
java selenium google-chrome-headless
ses
source share