code: private ChromeOptions getDefaultChromeOptions() {
          final String userAgent = getUserAgent();
          final ChromeOptions options = new ChromeOptions();
          options.addArguments("--test-type");
          options.addArguments("--ignore-certificate-errors");
          if ((userAgent != null) && (!userAgent.trim().isEmpty())) {
              options.addArguments("--user-agent=" + userAgent);
          }
          options.setHeadless(Boolean.parseBoolean(getLocalConfigProperty(ConfigProperty.BROWSER_RUN_HEADLESS)));
  
          return options;
      }
docs: /*
  Returns the default {@link ChromeOptions} used by this capabilities builder