com.opera.core.systems.scope.services
Interface IOperaExec

All Known Implementing Classes:
OperaExec

public interface IOperaExec


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... 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.
 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.
 

Method Detail

init

void init()

type

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.


mouseAction

void mouseAction(int x,
                 int y,
                 OperaMouseKeys... keys)
Create a mouse action on coordinates x,y with key(s) as specified in OperaMouseKeys.


mouseAction

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.


getActionList

java.util.Set<java.lang.String> getActionList()
Returns the list of possible Opera Actions on host.


action

void action(java.lang.String using,
            java.lang.String... param)
Execute an opera action with parameters (parameters are sent with commas).


action

void action(java.lang.String using,
            int windowID,
            java.lang.String... params)

action

void action(java.lang.String using,
            int data,
            java.lang.String dataString,
            java.lang.String dataStringParam)

key

void key(java.lang.String key)
Execute a key press (immediately send key down and up).


key

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.

Parameters:
up - down if false

keyIsPressed

boolean keyIsPressed(java.lang.String key)
Whether the given key is currently pressed down.

Returns:
true if the key is currently down, false if not.

releaseKeys

void releaseKeys()
Release all the pressed keys


containsColor

ScreenShotReply containsColor(Canvas canvas,
                              long timeout,
                              OperaColors... colors)
Check if the page contains color(s) as specified in OperaColors.

TODO: Needs abstraction layer


screenWatcher

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).



Copyright © 2011. All Rights Reserved.