|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WebBrowserElement
To fire any event on a WebBrowser one need to create WebBrowserElement. WebBrowserElement element can be created using createWebBrowserElement API of IScriptEngine interface. The return value is an instance of WebBrowserElement interface Once WebBrowserElement is created, you can play events on it.
Method Summary | |
---|---|
boolean |
activate()
To activate or bring browser to focus |
boolean |
alert(java.lang.String message)
To replay alert javascript in case of Mozilla Browser Control |
boolean |
back()
To move to previous page in the WebBrowser |
boolean |
close()
To close WebBrowser |
boolean |
confirm(java.lang.String message,
boolean cancel)
To replay confirm dialog javascript in case of Mozilla Browser Control |
boolean |
forward()
To move to next page in the WebBrowser |
boolean |
home()
To move to home page in the WebBrowser |
boolean |
maximize()
To maximize browser |
boolean |
minimize()
To minimise browser to an icon |
boolean |
prompt(java.lang.String message,
java.lang.String userInput)
To replay prompt javascript in case of Mozilla Browser Control |
boolean |
refresh()
To refresh page in the WebBrowser |
boolean |
restore()
To restore browser to previous size |
Methods inherited from interface com.appperfect.devcommon.script.webelement.WebObject |
---|
addAttribute, click, dblClick, mouseMove, rightClick, set, setBreakPoint, setExactMatchForAttributesComparision, setIgnored, setImagePath, setThinkTime, setTitle, submit, type, wait |
Methods inherited from interface com.appperfect.devcommon.script.IScript |
---|
getReasonForFailure, isIgnored, isTaskSuccessful, isTaskTimedOut, setReasonForFailure, setTaskSuccessful, setTaskTimedout, setTimeout |
Method Detail |
---|
boolean activate()
boolean alert(java.lang.String message)
message
- alert message
boolean back()
boolean close()
boolean confirm(java.lang.String message, boolean cancel)
message
- confirm messagecancel
- if dialog was cancelled
boolean forward()
boolean home()
boolean maximize()
boolean minimize()
boolean prompt(java.lang.String message, java.lang.String userInput)
message
- prompt messageuserInput
- input by user
boolean refresh()
boolean restore()
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |