code: private ChromeOptions getChromeOptions() {
          String driverPath = getProperty("browser.driver.path");
          if (!"".equals(driverPath)) {
              System.setProperty("webdriver.chrome.driver", driverPath);
          }
          ChromeOptions options = new ChromeOptions();
          setProfilePreferences(options);
          return options;
      }
docs: If you're using Selenium Grid, make sure the selenium server is in the same folder with the ChromeDriver
  or include the path to the ChromeDriver in command line when registering the node:
  -Dwebdriver.chrome.driver=%{path to chrome driver}
  
  @return ChromeOptions