I am trying to run the application in chrome headless mode using the below code, while providing the application as Google.com the code runs fine, whereas when providing the actual application under test URL I get a blank page. Any idea how to rectify this?
Code:
ChromeOptions options = new ChromeOptions();
Options.addArguments("--headless");
Webdriver driver = new ChromeDriver(options);
driver.get("https://www.google.com");
System.out.println(driver.getTitle());
Chrome Version is 66.