public class ScopeExec extends AbstractService implements Exec
servicesSERVICE_NAME| Constructor and Description |
|---|
ScopeExec(ScopeServices services) |
| Modifier and Type | Method and Description |
|---|---|
void |
action(String using,
int windowID,
String... params)
Execute an Opera action with parameters to a specific window.
|
void |
action(String using,
int data,
String dataString,
String dataStringParam)
Execute an Opera action with a data parameter for extra integer data to be sent with the
action.
|
void |
action(String using,
String... params)
Execute an Opera action with parameters.
|
ScreenCaptureReply |
containsColor(Canvas canvas,
long timeout,
OperaColors... colors)
Check if the page contains color(s) as specified in
OperaColors. |
Set<String> |
getActionList()
Returns the list of possible Opera Actions on host.
|
void |
init()
Initialize the service.
|
void |
key(String key)
Execute a key press (immediately send key down and up).
|
void |
key(String key,
boolean up)
Create a key event, this event controls if the key has been previously pressed before allowing
key up.
|
void |
mouseAction(int x,
int y,
int count,
OperaMouseKeys... keys)
Create one or more mouse actions on coordinates x,y with key(s) as specified in
OperaMouseKeys and the number of repeated events as an integer. |
void |
mouseAction(int x,
int y,
OperaMouseKeys... keys)
Create a mouse action on coordinates x,y with key(s) as specified in
OperaMouseKeys. |
ScreenCaptureReply |
screenWatcher(Canvas canvas,
long timeout,
boolean includeImage,
List<String> hashes)
Take a screenshot of specified
ExecProtos.Area and
compare it with the given hashes (keys). |
buildPayload, executeMessage, executeMessage, executeMessage, getServiceName, getServiceVersion, isVersionInRange, sleep, toString, xpathIterator, xpathPointerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetServiceName, getServiceVersionpublic ScopeExec(ScopeServices services)
public void init()
Servicepublic void mouseAction(int x,
int y,
OperaMouseKeys... keys)
ExecOperaMouseKeys.mouseAction in interface Execpublic void mouseAction(int x,
int y,
int count,
OperaMouseKeys... keys)
ExecOperaMouseKeys and the number of repeated events as an integer.mouseAction in interface Execpublic Set<String> getActionList()
ExecgetActionList in interface Execpublic void action(String using, String... params)
Execpublic void action(String using, int windowID, String... params)
Execpublic void action(String using, int data, String dataString, String dataStringParam)
Execaction in interface Execusing - the name of the action to executedata - data parameter for extra integer data to be sent with the actiondataString - string parameter for extra string data to be sent with the action, e.g.
"opera.com" to the command "go"dataStringParam - extra string parameter for action, sent in addition to the value
parameter for actions that need two stringspublic void key(String key)
Execpublic void key(String key, boolean up)
Execpublic ScreenCaptureReply containsColor(Canvas canvas, long timeout, OperaColors... colors)
ExecOperaColors.containsColor in interface Execpublic ScreenCaptureReply screenWatcher(Canvas canvas, long timeout, boolean includeImage, List<String> hashes)
ExecExecProtos.Area and
compare it with the given hashes (keys).screenWatcher in interface ExecCopyright © 2012. All Rights Reserved.