| com.google.gwt.junit.remote.BrowserManager
All known Subclasses: com.google.gwt.junit.remote.BrowserManagerServer,
BrowserManager | public interface BrowserManager extends Remote(Code) | | An interface to manage (possibly remote) browser windows. This class is
experimental and unsupported.
|
Method Summary | |
void | keepAlive(int token, long keepAliveMs) Keeps the browser process represented by token alive for keepAliveMs,
starting now. | void | killBrowser(int token) Forceably kills the browser process represented by token ,
disregarding any previous calls to
BrowserManager.keepAlive(int,long) . | int | launchNewBrowser(String url, long keepAliveMs) Launches a new browser window for the specified URL. |
keepAlive | void keepAlive(int token, long keepAliveMs) throws RemoteException(Code) | | Keeps the browser process represented by token alive for keepAliveMs,
starting now.
Parameters: token - an opaque token representing the browser window Parameters: keepAliveMs - the number of milliseconds to let the browser processlive; if roughly keepAliveMs milliseconds elapsewithout a subsequent call to this method, the browser processassociated with token will be forceably terminated throws: IllegalStateException - if the process represented by token hasalready terminated. throws: IllegalArgumentException - if token does not represent a process thatwas returned from BrowserManager.launchNewBrowser(String,long). throws: IllegalArgumentException - if keepAliveMs <= 0. throws: RemoteException - if an error occurs calling a remote implementation. |
launchNewBrowser | int launchNewBrowser(String url, long keepAliveMs) throws RemoteException(Code) | | Launches a new browser window for the specified URL.
Parameters: url - the URL to browse to Parameters: keepAliveMs - the initial number of milliseconds to let the browserprocess live; if roughly keepAliveMs millisecondsexpire without a subsequent call to BrowserManager.keepAlive(int,long),the browser process will be forceably terminated a positive integer that serves an an opaque token representing thenew browser window. throws: IllegalArgumentException - if url is null . throws: IllegalArgumentException - if keepAliveMs <= 0. throws: RuntimeException - if an error occurs launching the browser process. throws: RemoteException - if an error occurs calling a remote implementation. |
|
|