How do I pass the firefoxOptions in Geb?

Tell me how I can pass the firefoxOptions in Geb.

Hello Dipen,

Yes, you can pass the firefoxOptions in Geb in this format:

 public void SetUp() throws Throwable {
                System.setProperty("webdriver.gecko.driver", "/usr/bin/geckodriver");
            FirefoxBinary firefoxBinary = new FirefoxBinary();
            firefoxBinary.addCommandLineOptions("--headless");
        FirefoxProfile profile=new FirefoxProfile();
            FirefoxOptions firefoxOptions = new FirefoxOptions();
            firefoxOptions.setBinary(firefoxBinary);
            firefoxOptions.setProfile(profile);
        driver=new FirefoxDriver(firefoxOptions);
            driver.get("https://webapps.tekstac.com/shippingDetails/");
    }