net.serenitybdd.core.webdriver.OverrideDriverCapabilities Maven / Gradle / Ivy
package net.serenitybdd.core.webdriver;
import java.util.HashMap;
import java.util.Map;
import static java.lang.Boolean.FALSE;
import static java.lang.Boolean.TRUE;
/**
* This class allows you to override driver capabilities defined in the Serenity configuration files at runtime.
* This should be done before a new web page is opened, and will last for the duration of the test.
* Sample usage:
*
*
* OverrideDriverCapabilities.withProperty("browser").setTo("Chrome");
*
*/
public class OverrideDriverCapabilities {
private static ThreadLocal
© 2015 - 2025 Weber Informatics LLC | Privacy Policy