|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IOperaExec
| Method Summary | |
|---|---|
void |
action(String using,
int windowID,
String... params)
|
void |
action(String using,
int data,
String dataString,
String dataStringParam)
|
void |
action(String using,
String... param)
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. |
Set<String> |
getActionList()
Returns the list of possible Opera Actions on host. |
void |
init()
|
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. |
boolean |
keyIsPressed(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,
String... hashes)
Take a screenshot of specified ExecProtos.Area and
compare it with the given hashes (keys). |
void |
type(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. |
| Method Detail |
|---|
void init()
void type(String using)
void mouseAction(int x,
int y,
OperaMouseKeys... keys)
OperaMouseKeys.
void mouseAction(int x,
int y,
int count,
OperaMouseKeys... keys)
OperaMouseKeys and the number of repeated events as an integer.
Set<String> getActionList()
void action(String using,
String... param)
void action(String using,
int windowID,
String... params)
void action(String using,
int data,
String dataString,
String dataStringParam)
void key(String key)
void key(String key,
boolean up)
up - down if falseboolean keyIsPressed(String key)
void releaseKeys()
ScreenShotReply containsColor(Canvas canvas,
long timeout,
OperaColors... colors)
OperaColors. TODO: Needs
abstraction layer
ScreenShotReply screenWatcher(Canvas canvas,
long timeout,
boolean includeImage,
String... hashes)
ExecProtos.Area and
compare it with the given hashes (keys).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||