How to pass the capabilities and options into Firefoxdriver using Selenium through Java
问题 I have this: System.setProperty("webdriver.gecko.driver", "gecko/linux/geckodriver"); FirefoxProfile profile = new FirefoxProfile(); profile.setPreference("network.proxy.no_proxies_on", "localhost"); profile.setPreference("javascript.enabled", true); DesiredCapabilities capabilities = DesiredCapabilities.firefox(); capabilities.setCapability("marionette", true); capabilities.setCapability(FirefoxDriver.PROFILE, profile); FirefoxOptions options = new FirefoxOptions(); options.setLogLevel(Level