public final class CapabilitiesHelper extends Object
DefaultCapabilitiesBuilder
s which
are specified through theServiceLoader
mechanism, defined
Config.ConfigProperty.SELENIUM_CUSTOM_CAPABILITIES_PROVIDER
s, and/or specified through the MobileTest
or
WebTest
annotations.Modifier and Type | Method and Description |
---|---|
static org.openqa.selenium.remote.DesiredCapabilities |
retrieveCustomCapabilities(Class<? extends DefaultCapabilitiesBuilder> builder)
Acquire capabilities from a
DefaultCapabilitiesBuilder provider. |
static org.openqa.selenium.remote.DesiredCapabilities |
retrieveCustomCapabilities(InvokedMethodInformation methodInfo)
Deprecated.
|
static org.openqa.selenium.remote.DesiredCapabilities |
retrieveCustomCapabilities(String[] capabilitiesArray)
Parse capabilities from an array of String which uses the "name:value" format
|
static List<org.openqa.selenium.remote.DesiredCapabilities> |
retrieveCustomCapsObjects() |
static List<org.openqa.selenium.remote.DesiredCapabilities> |
retrieveCustomCapsViaServiceLoaders() |
public static List<org.openqa.selenium.remote.DesiredCapabilities> retrieveCustomCapsViaServiceLoaders()
DesiredCapabilities
found via ServiceLoader
.public static List<org.openqa.selenium.remote.DesiredCapabilities> retrieveCustomCapsObjects()
DesiredCapabilities
found via the
Config.ConfigProperty.SELENIUM_CUSTOM_CAPABILITIES_PROVIDER
public static org.openqa.selenium.remote.DesiredCapabilities retrieveCustomCapabilities(String[] capabilitiesArray)
capabilitiesArray
- the capabilities to parseDesiredCapabilities
object@Deprecated public static org.openqa.selenium.remote.DesiredCapabilities retrieveCustomCapabilities(InvokedMethodInformation methodInfo)
InvokedMethodInformation
methodInfo
- the TestNG InvokedMethodInformation
DesiredCapabilities
which are associated with the InvokedMethodInformation
public static org.openqa.selenium.remote.DesiredCapabilities retrieveCustomCapabilities(Class<? extends DefaultCapabilitiesBuilder> builder)
DefaultCapabilitiesBuilder
provider.builder
- the DefaultCapabilitiesBuilder
provider to acquire capabilities fromDesiredCapabilities
which came from the providers.Copyright © 2016 PayPal Open Source. All rights reserved.