How to use both the Firefox Profile and Firefox options with Selenium in Java
问题 I'm writing a test that I'd like to headless, which will also download a file within java using Selenium. from here I learn that you can set a driver to be headless by throwing this code before you initialize the driver: options.setHeadless(true); //sets driver to work headless WebDriver driver = new FirefoxDriver(options); and that I can use this method to write a Firefox Profile which will dictate a download directory and allow me to download a file with firefox w/o any pop up windows (I've