setting profiles dynamically in firefox java selenium
import org.openqa.selenium.firefox.FirefoxProfile; FirefoxProfile prof = new FirefoxProfile(); prof.setPreference("network.security.ports.banned.override", "465"); prof.setPreference("browser.startup.homepage", "https://5.44.137.168:465/test-portal/"); WebDriver driver = new FirefoxDriver(prof ); //Engine.setDriver(new PatientFirefoxDriver(prof)); // PatientWebDriver driver = Engine.getDriver(); WebDriver driver = new FirefoxDriver(myprofile); driver.get("https://5.44.137.168:465/test-portal/"); inspiration: https://seleniumatfingertips.wordpress.com/2016/07/03/defining-firefoxprofile-preferences-using-selenium-webdriver-with-java/