How to run the test using local webdriver with options?

Tell me how to run the test using local web driver with options.

Hello Mark,

You need to use the below mentioned snippet:

System.setProperty("webdriver.chrome.driver", "/Users/shubhamr/Downloads/chromedriver");
        ChromeOptions options = new ChromeOptions();
         Argument or prefs user can pass in options
       WebDriver driver = new ChromeDriver(options);