com.opera.core.systems.scope.internal
Enum OperaIntervals

java.lang.Object
  extended by java.lang.Enum<OperaIntervals>
      extended by com.opera.core.systems.scope.internal.OperaIntervals
All Implemented Interfaces:
Serializable, Comparable<OperaIntervals>

public enum OperaIntervals
extends Enum<OperaIntervals>

Enumerator for delay values in milliseconds.


Enum Constant Summary
BACKWARDS_COMPATIBLE
           
DEFAULT_RESPONSE_TIMEOUT
           
HANDSHAKE_TIMEOUT
          The handshake timeout defines how long the Scope server (OperaDriver) should wait for a connection from a client (Opera) before shutting down.
IMPLICIT_WAIT
          An implicit wait is to tell WebDriver to poll the DOM for a certain amount of time when trying to find an element or elements if they are not immediately available.
KILL_GRACE_TIMEOUT
           
LAUNCHER_TIMEOUT
          After starting the launcher we need to wait for the launcher to connect to our listener.
MENU_EVENT_TIMEOUT
           
MULTIPLE_CLICK_SLEEP
          When clicking several times in a row (e.g.
OPERA_IDLE_TIMEOUT
           
PAGE_LOAD_TIMEOUT
          The page load timeout specifies how long the driver waits for a page to finish loading before returning the control to the user.
POLL_INTERVAL
           
PROCESS_START_SLEEP
          If programs such as the launcher exits immediately with an improper exit value (> 0) we can assume something went wrong during initialization.
QUIT_POLL_INTERVAL
           
QUIT_RESPONSE_TIMEOUT
           
RESPONSE_TIMEOUT
          The response timeout specifies for how long OperaDriver should wait before timing out when it has not received a callback confirmation message from Scope after executing a command.
SCRIPT_RETRY_INTERVAL
          The interval at which an ECMAScript should be attempted reevaluated in the case of it for some reason failing.
SCRIPT_TIMEOUT
          Sets the amount of time to wait for an asynchronous script to finish execution before throwing an error.
SERVER_DEFAULT_PORT
          The default Opera debug proxy server port for OperaDriver to connect to.
SERVER_DEFAULT_PORT_IDENTIFIER
          For backwards compatibility with Operas without -debugproxy support, if the user specifies -1 as the port it will use the default server proxy port specified in SERVER_DEFAULT_PORT.
SERVER_RANDOM_PORT_IDENTIFIER
          For backwards compatibility with Operas without -debugproxy support, if the user specifies 0 as the port it will use a random port.
WINDOW_EVENT_TIMEOUT
           
 
Method Summary
 long getValue()
           
 void setValue(long value)
           
static String toList()
           
 String toString()
           
static OperaIntervals valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OperaIntervals[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

RESPONSE_TIMEOUT

public static final OperaIntervals RESPONSE_TIMEOUT
The response timeout specifies for how long OperaDriver should wait before timing out when it has not received a callback confirmation message from Scope after executing a command. This typically happens when it looses connection to Opera or when a triggered command takes too long to finish.


IMPLICIT_WAIT

public static final OperaIntervals IMPLICIT_WAIT
An implicit wait is to tell WebDriver to poll the DOM for a certain amount of time when trying to find an element or elements if they are not immediately available. The default setting is 0. Once set, the implicit wait is set for the life of the WebDriver object instance.


PAGE_LOAD_TIMEOUT

public static final OperaIntervals PAGE_LOAD_TIMEOUT
The page load timeout specifies how long the driver waits for a page to finish loading before returning the control to the user.


WINDOW_EVENT_TIMEOUT

public static final OperaIntervals WINDOW_EVENT_TIMEOUT

OPERA_IDLE_TIMEOUT

public static final OperaIntervals OPERA_IDLE_TIMEOUT

POLL_INTERVAL

public static final OperaIntervals POLL_INTERVAL

HANDSHAKE_TIMEOUT

public static final OperaIntervals HANDSHAKE_TIMEOUT
The handshake timeout defines how long the Scope server (OperaDriver) should wait for a connection from a client (Opera) before shutting down. If set to 0, it will wait indefinitely.


SERVER_DEFAULT_PORT

public static final OperaIntervals SERVER_DEFAULT_PORT
The default Opera debug proxy server port for OperaDriver to connect to.


SERVER_RANDOM_PORT_IDENTIFIER

public static final OperaIntervals SERVER_RANDOM_PORT_IDENTIFIER
For backwards compatibility with Operas without -debugproxy support, if the user specifies 0 as the port it will use a random port.


SERVER_DEFAULT_PORT_IDENTIFIER

public static final OperaIntervals SERVER_DEFAULT_PORT_IDENTIFIER
For backwards compatibility with Operas without -debugproxy support, if the user specifies -1 as the port it will use the default server proxy port specified in SERVER_DEFAULT_PORT.


KILL_GRACE_TIMEOUT

public static final OperaIntervals KILL_GRACE_TIMEOUT

BACKWARDS_COMPATIBLE

public static final OperaIntervals BACKWARDS_COMPATIBLE

DEFAULT_RESPONSE_TIMEOUT

public static final OperaIntervals DEFAULT_RESPONSE_TIMEOUT

QUIT_POLL_INTERVAL

public static final OperaIntervals QUIT_POLL_INTERVAL

QUIT_RESPONSE_TIMEOUT

public static final OperaIntervals QUIT_RESPONSE_TIMEOUT

SCRIPT_TIMEOUT

public static final OperaIntervals SCRIPT_TIMEOUT
Sets the amount of time to wait for an asynchronous script to finish execution before throwing an error. If the timeout is negative, then the script will be allowed to run indefinitely.


SCRIPT_RETRY_INTERVAL

public static final OperaIntervals SCRIPT_RETRY_INTERVAL
The interval at which an ECMAScript should be attempted reevaluated in the case of it for some reason failing. A script reevaluation will time out on SCRIPT_TIMEOUT.


LAUNCHER_TIMEOUT

public static final OperaIntervals LAUNCHER_TIMEOUT
After starting the launcher we need to wait for the launcher to connect to our listener. If the launcher does not connect within this timeout, we assume something has gone wrong.


PROCESS_START_SLEEP

public static final OperaIntervals PROCESS_START_SLEEP
If programs such as the launcher exits immediately with an improper exit value (> 0) we can assume something went wrong during initialization. We need to wait for a short period before checking the exit value as it may take some time to start the program.


MENU_EVENT_TIMEOUT

public static final OperaIntervals MENU_EVENT_TIMEOUT

MULTIPLE_CLICK_SLEEP

public static final OperaIntervals MULTIPLE_CLICK_SLEEP
When clicking several times in a row (e.g. for a double, triple or quadruple click) 640 ms is the hardcoded interval Opera must wait before loosing the previous click state, not joining clicks together. This should be removed when support is added to the exec service for setValue() so that we can tell Opera to override this interval.

Method Detail

values

public static OperaIntervals[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (OperaIntervals c : OperaIntervals.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OperaIntervals valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

setValue

public void setValue(long value)

getValue

public long getValue()

toString

public String toString()
Overrides:
toString in class Enum<OperaIntervals>

toList

public static String toList()


Copyright © 2012. All Rights Reserved.