public static enum OperaSettings.Capability extends Enum<OperaSettings.Capability>
DesiredCapabilities.opera().| Enum Constant and Description |
|---|
ARGUMENTS
(String) Arguments to pass to Opera, separated by spaces.
|
AUTOSTART
(Boolean) Whether to auto-start the Opera binary.
|
BACKEND
Deprecated.
|
BINARY
(String/File) Path to the Opera binary to use.
|
DETACH
(Boolean) Whether to detach the Opera browser when the driver shuts down.
|
DISPLAY
(Integer) The X display to use.
|
EMULATION_PROFILE
(EmulationProfile/MobileDevices/String) Allows emulation of specific devices for (currently
only) Opera Mobile.
|
HOST
(String) The host Opera should connect to.
|
LAUNCHER
(String) Path to the launcher binary to use.
|
LOGGING_FILE
(String/File) Where to send the output of the logging.
|
LOGGING_LEVEL
(String/Level/Integer) How verbose the logging should be.
|
NO_QUIT
Deprecated.
replaced by
DETACH |
NO_RESTART
Deprecated.
|
OPERAIDLE
(Boolean) Whether to use Opera's alternative implicit wait implementation.
|
PORT
(Integer) The port to Opera should connect to.
|
PRODUCT
(String) The product we are using, for example
OperaProduct.DESKTOP or OperaProduct.CORE. |
PROFILE
(OperaProfile/String) Directory of the profile to use, or an
OperaProfile instance
object representing a profile. |
PROXY
(Proxy/Proxy JSON object) Details of any proxy to use.
|
RUNNER
(Class/String) Allows you to specify which mechanism to use for managing and controlling the
Opera binary process from OperaDriver.
|
| Modifier and Type | Method and Description |
|---|---|
static OperaSettings.Capability |
findCapability(String capabilityName)
Looks up a capability by its capability name.
|
String |
getCapability()
Gets the string representation of this capability for use in
DesiredCapabilities. |
String |
getIdentifier()
Returns the identifier of the capability (used in
OperaSettings without it's CAPABILITY_PREFIX. |
String |
toString()
Gets the string representation of this capability.
|
static OperaSettings.Capability |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OperaSettings.Capability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OperaSettings.Capability LOGGING_LEVEL
Level reference, or null. If the value is neither of a known name nor an integer, an IllegalArgumentException will be thrown.public static final OperaSettings.Capability LOGGING_FILE
public static final OperaSettings.Capability BINARY
/usr/bin/opera, C:\Program
Files\Opera\opera.exe, or similar).public static final OperaSettings.Capability ARGUMENTS
opera -help for
available command-line switches.public static final OperaSettings.Capability HOST
public static final OperaSettings.Capability PORT
public static final OperaSettings.Capability LAUNCHER
public static final OperaSettings.Capability PROFILE
OperaProfile instance
object representing a profile. If null is given, a random temporary directory is used. If
"", an empty string, then the default ~/.autotest profile directory will be used
(for backwards compatibility with Opera < 11.60).public static final OperaSettings.Capability OPERAIDLE
public static final OperaSettings.Capability DISPLAY
public static final OperaSettings.Capability AUTOSTART
public static final OperaSettings.Capability PROXY
Proxy or a proxy
JSON object like this:
http://hostname.com:1234/pacfilehostname.com:1234public static final OperaSettings.Capability RUNNER
OperaRunner interface.
OperaDriver ships with two implementations that can be used:
com.opera.core.systems.runner.launcher.OperaLauncherRunner (default)com.opera.core.systems.runner.inprocess.OperaInProcessRunnerpublic static final OperaSettings.Capability EMULATION_PROFILE
{
width: INTEGER,
height: INTEGER,
ppi: INTEGER,
input: "native", "touch", "keypad", or "tablet"
userAgent: "Android", "Desktop", "MeeGo", or "S60"
}
Or use one of the predefined emulation profiles found in MobileDevices:
capabilities.set("opera.emulationProfile", MobileDevices.SAMSUNG_GALAXY_NEXUS);
Or provide your own profile using the Java builder:
capabilities.set("opera.emulationProfile", OperaMobileEmulation.builder()
.setResolution(new Dimension(480, 800)
.setPPI(123)
.setUserAgent(UserAgent.ANDROID)
.setIME(IME.TABLET)
.build());
@Deprecated public static final OperaSettings.Capability NO_RESTART
OperaDesktopDriver reinitialization. This
option only applies to the Desktop Driver.@Deprecated public static final OperaSettings.Capability NO_QUIT
DETACHpublic static final OperaSettings.Capability DETACH
public static final OperaSettings.Capability PRODUCT
OperaProduct.DESKTOP or OperaProduct.CORE.@Deprecated public static final OperaSettings.Capability BACKEND
public static OperaSettings.Capability[] values()
for (OperaSettings.Capability c : OperaSettings.Capability.values()) System.out.println(c);
public static OperaSettings.Capability valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic String getIdentifier()
OperaSettings without it's CAPABILITY_PREFIX.public String getCapability()
DesiredCapabilities.DesiredCapabilitiespublic String toString()
toString in class Enum<OperaSettings.Capability>public static OperaSettings.Capability findCapability(String capabilityName)
capabilityName - the string representation of the capabilityCopyright © 2013. All Rights Reserved.