Package net.serenitybdd.core.webdriver
Class OverrideDriverCapabilities
java.lang.Object
net.serenitybdd.core.webdriver.OverrideDriverCapabilities
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");
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static class
static interface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
clear()
static boolean
withProperty
(String propertyName)
-
Constructor Details
-
OverrideDriverCapabilities
-
-
Method Details
-
withProperty
-
clear
public static void clear() -
getProperties
-
shouldOverrideDefaults
public static boolean shouldOverrideDefaults()
-