|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscone.accesstracking.FrameAccessObject
scone.usertesttool.BrowserControl
public class BrowserControl
This object keeps up to date about opened and closed web pages
| Constructor Summary | |
|---|---|
BrowserControl()
|
|
| Method Summary | |
|---|---|
boolean |
blur(java.lang.String parentFrameAndFrameName)
This method calls JavaScript code inside the browser using the Applet to bring the browser's window behind the others |
boolean |
bringToFront(java.lang.String parentFrameAndFrameName)
This method calls JavaScript code inside the browser using the Applet to bring the browser's window to front |
void |
framesChanged(java.util.Set contents)
This method is called by FrameAccess everytime a new frame was added to or removed from list of active frames. |
boolean |
javaScriptCommand(java.lang.String parentFrameAndFrameName,
java.lang.String command)
This method executes JavaScript code inside the browser using the Applet |
boolean |
moveBrowserWindow(java.lang.String parentFrameAndFrameName,
int x,
int y)
This method calls JavaScript code inside the browser using the Applet to move the browser window |
boolean |
openUri(java.lang.String parentFrameAndFrameName,
java.lang.String uri)
This method is called by UserTestControl to open a new uri in the browser |
boolean |
resize(java.lang.String parentFrameAndFrameName,
int width,
int height)
This method calls JavaScript code inside the browser using the Applet to resize the browser window |
| Methods inherited from class scone.accesstracking.FrameAccessObject |
|---|
contains, contains, get, get, getAccessObject, getAccessObject, getSetOfContents, notifyMe, showOpenFrames, stopNotifyMe |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BrowserControl()
| Method Detail |
|---|
public void framesChanged(java.util.Set contents)
framesChanged in class FrameAccessObjectcontents - A Set of parent frame names (if existing) concated with
frame names
public boolean openUri(java.lang.String parentFrameAndFrameName,
java.lang.String uri)
parentFrameAndFrameName - The name of the parent frame and current frame concatinated to identify the browser windowuri - The uri to be opened
public boolean bringToFront(java.lang.String parentFrameAndFrameName)
parentFrameAndFrameName - The name of the browserframe and, if existing, the framename of the parent frame to identify the right browserpublic boolean blur(java.lang.String parentFrameAndFrameName)
parentFrameAndFrameName - The name of the browserframe and, if existing, the framename of the parent frame to identify the right browser
public boolean resize(java.lang.String parentFrameAndFrameName,
int width,
int height)
parentFrameAndFrameName - The name of the browserframe and, if existing, the framename of the parent frame to identify the right browserwidth - Width of the browser windowheigth - Height of the browser window
public boolean moveBrowserWindow(java.lang.String parentFrameAndFrameName,
int x,
int y)
parentFrameAndFrameName - The name of the browserframe and, if existing, the framename of the parent frame to identify the right browserx - X-coordinate of left upper corner of the browser windowy - Y-coordinate of left upper corner of the browser window
public boolean javaScriptCommand(java.lang.String parentFrameAndFrameName,
java.lang.String command)
parentFrameAndFrameName - The name of the browserframe and, if existing, the framename of the parent frame to identify the right browsercommand - javaScriptCommands to be executed inside the browser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||