How do I pass the ChromeOptions in JUnit?

I need to know how to pass the ChromeOptions in JUnit.

Hello Dipen,

You can pass the ChromeOptions in JUnit.

Here is the sample code:

 ChromeOptions options = new ChromeOptions();
    options.setLogLevel(ChromeDriverLogLevel.DEBUG);
    options.addArguments("--Arg1=1");
    WebDriver driver = new ChromeDriver(options);
    driver.get("https://google.com/");
    driver.quit();