I am trying to run a headless Chrome browser in a Docker container using a Docker file but is giving crash issue whenever it tries to execute the Automation script using it.
I have tried changing the Chrome driver version to 75 and 76 and gave issue with the Chrome browser version.
ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.addArguments("--headless");
chromeOptions.addArguments("--disable-dev-shm-usage");
chromeOptions.addArguments("--no-sandbox");
chromeOptions.addArguments("--disable-setuid-sandbox");
chromeOptions.addArguments("disable-infobars");
chromeOptions.addArguments("--disable-extensions");