AB
public static class CustomWebDriverProvider implements WebDriverProvider {
@Override
public WebDriver createDriver(DesiredCapabilities capabilities) {
FirefoxProfile profile = new FirefoxProfile(new File("/home/test/MozzillaProf/"));
FirefoxOptions firefoxOptions = new FirefoxOptions()
.setProfile(profile)
.setAcceptInsecureCerts(true)
.addPreference("general.useragent.override", "some UA string")
.merge(capabilities);
return new FirefoxDriver(firefoxOptions);
}
}
