Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## scone.usertesttool
Class BrowserControl

    java.lang.Object
      scone.accesstracking.FrameAccessObject
          scone.usertesttool.BrowserControl

    public class BrowserControl

extends FrameAccessObject

This object keeps up to date about opened and closed web pages

Version:
  1.1, 11/12/2003
Author:
  Torsten Hass

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

### BrowserControl

    public BrowserControl()

Method Detail

### framesChanged

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

  Specified by:
    `framesChanged` in class `FrameAccessObject`
  Parameters:
    `contents` - A Set of parent frame names (if existing) concated with frame names

### openUri

    public boolean openUri(java.lang.String parentFrameAndFrameName,
                           java.lang.String uri)

  This method is called by UserTestControl to open a new uri in the browser

  Parameters:
    `parentFrameAndFrameName` - The name of the parent frame and current frame concatinated to identify the browser window
    `uri` - The uri to be opened
  Returns:
    True, if no problems occured

### bringToFront

    public 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

  Parameters:
    `parentFrameAndFrameName` - The name of the browserframe and, if existing, the framename of the parent frame to identify the right browser

### blur

    public 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

  Parameters:
    `parentFrameAndFrameName` - The name of the browserframe and, if existing, the framename of the parent frame to identify the right browser

### resize

    public 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

  Parameters:
    `parentFrameAndFrameName` - The name of the browserframe and, if existing, the framename of the parent frame to identify the right browser
    `width` - Width of the browser window
    `heigth` - Height of the browser window

### moveBrowserWindow

    public 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

  Parameters:
    `parentFrameAndFrameName` - The name of the browserframe and, if existing, the framename of the parent frame to identify the right browser
    `x` - X-coordinate of left upper corner of the browser window
    `y` - Y-coordinate of left upper corner of the browser window

### javaScriptCommand

    public boolean javaScriptCommand(java.lang.String parentFrameAndFrameName,
                                     java.lang.String command)

  This method executes JavaScript code inside the browser using the Applet

  Parameters:
    `parentFrameAndFrameName` - The name of the browserframe and, if existing, the framename of the parent frame to identify the right browser
    `command` - javaScriptCommands to be executed inside the browser

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD