All Downloads are FREE. Search and download functionalities are using the official Maven repository.

info.novatec.testit.webtester.browser.factories.FirefoxFactory Maven / Gradle / Ivy

package info.novatec.testit.webtester.browser.factories;

import org.openqa.selenium.firefox.FirefoxDriver;

import info.novatec.testit.webtester.browser.Browser;
import org.openqa.selenium.firefox.FirefoxOptions;


/**
 * Factory class for creating Firefox {@link Browser} instances.
 * This will only work for Firefox browsers up to version 46.
 * All newer versions need to be initialized using the {@link MarionetteFactory}.
 * 

* The following capabilities are set by default: *

    *
  • Native Events are disabled
  • *
  • Unsigned certificates are accepted
  • *
* Additional information on using the {@link FirefoxDriver}: *

* https://github.com/SeleniumHQ/selenium/wiki/FirefoxDriver * * @see Browser * @see FirefoxDriver * @see MarionetteFactory * @since 2.1 */ public class FirefoxFactory extends BaseBrowserFactory { public FirefoxFactory() { super((capabilities) -> { FirefoxOptions firefoxOptions = new FirefoxOptions() .setLegacy(true) .merge(capabilities); return new FirefoxDriver(firefoxOptions); }); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy