|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opera.core.systems.scope.AbstractService
com.opera.core.systems.scope.services.ums.OperaExec
public class OperaExec
The exec service handles user interactions such as key presses, mouse clicks, screenshot grabbing and executing actions on Opera.
| Constructor Summary | |
|---|---|
OperaExec(ScopeServices services,
java.lang.String version)
|
|
| Method Summary | |
|---|---|
void |
action(java.lang.String using,
int windowID,
java.lang.String... params)
|
void |
action(java.lang.String using,
int data,
java.lang.String dataString,
java.lang.String dataStringParam)
|
void |
action(java.lang.String using,
java.lang.String... params)
Execute an opera action with parameters (parameters are sent with commas). |
ScreenShotReply |
containsColor(Canvas canvas,
long timeout,
OperaColors... colors)
Check if the page contains color(s) as specified in OperaColors. |
java.util.Set<java.lang.String> |
getActionList()
Returns the list of possible Opera Actions on host. |
void |
init()
|
void |
key(java.lang.String key)
Execute a key press (immediately send key down and up). |
void |
key(java.lang.String key,
boolean up)
Create a key event, this event controls if the key has been previously pressed before allowing key up. |
boolean |
keyIsPressed(java.lang.String key)
Whether the given key is currently pressed down. |
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. |
void |
releaseKeys()
Release all the pressed keys |
ScreenShotReply |
screenWatcher(Canvas canvas,
long timeout,
boolean includeImage,
java.lang.String... hashes)
Take a screenshot of specified ExecProtos.Area and compare it with the given hashes (keys). |
void |
type(java.lang.String using)
Type a string, preserving space, sent to active window This command doesn't return a response in STP/0 hence we sleep to be on the safe side. |
| Methods inherited from class com.opera.core.systems.scope.AbstractService |
|---|
buildPayload, executeCommand, executeCommand, getVersion, isVersionInRange, sleep, xpathIterator, xpathPointer, xpathQuery |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperaExec(ScopeServices services,
java.lang.String version)
| Method Detail |
|---|
public void init()
init in interface IOperaExecpublic void type(java.lang.String using)
IOperaExec
type in interface IOperaExec
public void mouseAction(int x,
int y,
OperaMouseKeys... keys)
IOperaExecOperaMouseKeys.
mouseAction in interface IOperaExec
public void mouseAction(int x,
int y,
int count,
OperaMouseKeys... keys)
IOperaExecOperaMouseKeys and the number of repeated events as an integer.
mouseAction in interface IOperaExecpublic java.util.Set<java.lang.String> getActionList()
IOperaExec
getActionList in interface IOperaExec
public void action(java.lang.String using,
int windowID,
java.lang.String... params)
action in interface IOperaExec
public void action(java.lang.String using,
int data,
java.lang.String dataString,
java.lang.String dataStringParam)
action in interface IOperaExec
public void action(java.lang.String using,
java.lang.String... params)
IOperaExec
action in interface IOperaExecpublic void key(java.lang.String key)
IOperaExec
key in interface IOperaExec
public void key(java.lang.String key,
boolean up)
IOperaExec
key in interface IOperaExecup - down if falsepublic boolean keyIsPressed(java.lang.String key)
IOperaExec
keyIsPressed in interface IOperaExecpublic void releaseKeys()
IOperaExec
releaseKeys in interface IOperaExec
public ScreenShotReply containsColor(Canvas canvas,
long timeout,
OperaColors... colors)
IOperaExecOperaColors. TODO: Needs
abstraction layer
containsColor in interface IOperaExec
public ScreenShotReply screenWatcher(Canvas canvas,
long timeout,
boolean includeImage,
java.lang.String... hashes)
IOperaExecExecProtos.Area and compare it with the given hashes (keys).
screenWatcher in interface IOperaExec
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||