|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WebObject
WebObject represents the generic web or HTML element. WebObject element can be created using createWebObject API of IScriptEngine interface. The return value is an instance of WebObject interface. Once WebObject is created, you can play events mentioned below.
Method Summary | |
---|---|
void |
addAttribute(java.lang.String sAttributeName,
java.lang.String sAttributeValue,
boolean bIgnore,
boolean bValidate,
java.lang.String testParameterName)
Each Web or Window Element has a set of attributes, which are used to find the desired element during execution This method is used to add a attribute to the event |
boolean |
click(boolean useLowLevelMouseEvents)
To simulate click event on html element |
boolean |
dblClick()
To simulate double click event on html element |
boolean |
mouseMove()
To simulate mouse move event on html element |
boolean |
rightClick()
To simulate right click event on html element |
boolean |
set(java.lang.String text)
To set the specified text in the element |
void |
setBreakPoint(boolean bBreakPoint)
This method should be called to set a breakpoint before executing task. |
void |
setExactMatchForAttributesComparision(boolean bExactMatch)
This method should be called to match all the attributes exactly as they are while finding the target element. |
void |
setIgnored(boolean bIgnore)
This method should be called to ignore a task during execution. |
void |
setImagePath(java.lang.String sImagePath)
This is used to set the event's image path. |
void |
setThinkTime(int iThinkTime)
Delay in seconds before the task is actually executed. |
void |
setTitle(java.lang.String sTitle)
This method is used to set the event's title |
boolean |
submit()
To submit the form |
boolean |
type(java.lang.String keyBoardInput,
boolean isAlphaNumeric)
Types the specified string in the object |
boolean |
wait(java.lang.String propertyName,
java.lang.String propertyValue,
long timeout)
Will make replayer wait till specified property recieves specified value or till the specified time out period, whatever happens earlier |
Methods inherited from interface com.appperfect.devcommon.script.IScript |
---|
getReasonForFailure, isIgnored, isTaskSuccessful, isTaskTimedOut, setReasonForFailure, setTaskSuccessful, setTaskTimedout, setTimeout |
Method Detail |
---|
void addAttribute(java.lang.String sAttributeName, java.lang.String sAttributeValue, boolean bIgnore, boolean bValidate, java.lang.String testParameterName)
sAttributeName
- name of the attributesAttributeValue
- value of the attributebIgnore
- true
if this attribute should be ignored;
false
otherwise.bValidate
- true
if this attribute should be validated;
false
otherwise.testParameterName
- name of the TestParameter if the attribute value is parameterizedboolean click(boolean useLowLevelMouseEvents)
useLowLevelMouseEvents
- true if application should use low level mouse events to replay, false otherwise
boolean dblClick()
boolean mouseMove()
boolean rightClick()
boolean set(java.lang.String text)
text
- text to set in element
void setBreakPoint(boolean bBreakPoint)
bBreakPoint
- true
if breakpoint should be set;
false
otherwise.void setExactMatchForAttributesComparision(boolean bExactMatch)
bExactMatch
- true
if all the attributes for the event are to
matched exactly as they are; false
otherwise.void setIgnored(boolean bIgnore)
setIgnored
in interface IScript
bIgnore
- true
if this task should be ignored;
false
otherwise.void setImagePath(java.lang.String sImagePath)
sImagePath
- file path of the event's image saved on disk.void setThinkTime(int iThinkTime)
setThinkTime
in interface IScript
iThinkTime
- no of seconds the engine waits before the task is actually
executed.void setTitle(java.lang.String sTitle)
sTitle
- title of the eventboolean submit()
boolean type(java.lang.String keyBoardInput, boolean isAlphaNumeric)
keyBoardInput
- A String value. The text string to type.isAlphaNumeric
- is true if text string represents a alphanumeric key, false
otherwise
boolean wait(java.lang.String propertyName, java.lang.String propertyValue, long timeout)
propertyName
- name of the element's attribute for which the value should be
fetched.propertyValue
- value of the attribute against which the comparision should be
donetimeout
- in no. of seconds, time period for which the replayer should
wait to get the expected value
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |