|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.safs.Processor
org.safs.ComponentFunction
org.safs.selenium.CFComponent
public class CFComponent
Component Functions for Selenium.
For some functionality we use the java.awt.Robot and our own InputKeysParser classes.
InputKeysParser requires the availability of a SAFSKeycodeMap.dat file which is normally located in the SAFS\lib directory. This file will be loaded through ClassLoader.getSystemResourceAsStream.
Robot,
InputKeysParser,
CreateUnicodeMap,
ClassLoader.getSystemResourceAsStream(java.lang.String)| Field Summary | |
|---|---|
static java.lang.String |
ALTCLICK
|
static java.lang.String |
ASSIGNPROPERTYVARIABLE
|
static java.lang.String |
CAPTUREOBJECTDATATOFILE
|
static java.lang.String |
CLICK
|
static java.lang.String |
CLOSEWINDOW
|
static java.lang.String |
COMPONENTCLICK
|
static java.lang.String |
CTRLCLICK
|
static java.lang.String |
CTRLRIGHTCLICK
|
static java.lang.String |
DOUBLECLICK
|
static java.lang.String |
GETGUIIMAGE
|
static java.lang.String |
GUIDOESEXIST
|
static java.lang.String |
GUIDOESNOTEXIST
|
static java.lang.String |
INPUTCHARACTERS
|
static java.lang.String |
INPUTKEYS
|
static InputKeysParser |
keysparser
|
static java.lang.String |
MAXIMIZE
|
static java.lang.String |
MINIMIZE
|
static java.lang.String |
RESTORE
|
static java.lang.String |
RIGHTCLICK
|
static java.awt.Robot |
robot
|
protected Selenium |
selenium
|
static java.lang.String |
SETPOSITION
|
protected STestRecordHelper |
sHelper
|
static java.lang.String |
SHIFTCLICK
|
protected SeleniumGUIUtilities |
sUtils
|
static java.lang.String |
VERIFYGUIIMAGE
|
static java.lang.String |
VERIFYPROPERTY
|
static java.lang.String |
VERIFYPROPERTYCONTAINS
|
static java.lang.String |
WAITFORGUI
|
| Fields inherited from class org.safs.ComponentFunction |
|---|
action, compName, mapname, utils, windowName |
| Constructor Summary | |
|---|---|
CFComponent()
|
|
| Method Summary | |
|---|---|
protected void |
componentClick()
Purpose: componentClick |
protected java.awt.Rectangle |
getComponentBounds(java.lang.String s)
Gets the size of the component |
protected java.awt.Rectangle |
getComponentRectangle()
Gets a screenshot of either the whole page or a component on the page. |
protected void |
localProcess()
|
void |
process()
The primary method that all subclasses must implement. |
protected void |
scrollToAndClickComponent(SGuiObject o)
Scrolls to a component then left clicks on it. |
protected void |
scrollToComponent(SGuiObject o)
Scrolls to a component on the page |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String WAITFORGUI
public static final java.lang.String ASSIGNPROPERTYVARIABLE
public static final java.lang.String GUIDOESEXIST
public static final java.lang.String GUIDOESNOTEXIST
public static final java.lang.String GETGUIIMAGE
public static final java.lang.String VERIFYGUIIMAGE
public static final java.lang.String INPUTCHARACTERS
public static final java.lang.String INPUTKEYS
public static final java.lang.String VERIFYPROPERTY
public static final java.lang.String VERIFYPROPERTYCONTAINS
public static final java.lang.String CAPTUREOBJECTDATATOFILE
public static final java.lang.String CLICK
public static final java.lang.String CTRLCLICK
public static final java.lang.String DOUBLECLICK
public static final java.lang.String RIGHTCLICK
public static final java.lang.String CTRLRIGHTCLICK
public static final java.lang.String SHIFTCLICK
public static final java.lang.String ALTCLICK
public static final java.lang.String COMPONENTCLICK
public static final java.lang.String CLOSEWINDOW
public static final java.lang.String SETPOSITION
public static final java.lang.String MAXIMIZE
public static final java.lang.String MINIMIZE
public static final java.lang.String RESTORE
protected Selenium selenium
protected SeleniumGUIUtilities sUtils
protected STestRecordHelper sHelper
public static java.awt.Robot robot
public static InputKeysParser keysparser
| Constructor Detail |
|---|
public CFComponent()
| Method Detail |
|---|
public void process()
ProcessorThus, any subclassing Processor should attempt to process it's own commands and then invoke super.process() to try any chained Processor(s).
Otherwise, by default executes setRecordProcessed(false) if no chainedProcessor is present.
process in class Processorprotected void localProcess()
protected void componentClick()
protected java.awt.Rectangle getComponentRectangle()
getComponentRectangle in class ComponentFunctionSAFSExceptionprotected void scrollToAndClickComponent(SGuiObject o)
o - component to be clickedprotected void scrollToComponent(SGuiObject o)
o - component to be scrolled toprotected java.awt.Rectangle getComponentBounds(java.lang.String s)
s - component
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||