public class WaitForBrowserReadyHandler extends Object implements WaitExecSyncEventHandler
Runnable to IWebBrowserACTF. The
Runnable will be invoked when the IWebBrowserACTF becomes
ready.WaitExecSyncEventListener| Modifier and Type | Field and Description |
|---|---|
static double |
INTERVAL |
| Constructor and Description |
|---|
WaitForBrowserReadyHandler(IWebBrowserACTF browser,
double timeout,
boolean waitActive,
Runnable runnable)
Constructor of the class
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRun(double elapsed)
Check if action can be executed right now
|
double |
getInterval()
Get scheduling interval in second
|
void |
run() |
public WaitForBrowserReadyHandler(IWebBrowserACTF browser, double timeout, boolean waitActive, Runnable runnable)
browser - target IWebBrowserACTFtimeout - timeout valuewaitActive - if true, wait Shell becomes activerunnable - target Runnable to invokepublic double getInterval()
WaitExecSyncEventHandlergetInterval in interface WaitExecSyncEventHandlerpublic boolean canRun(double elapsed)
WaitExecSyncEventHandlercanRun in interface WaitExecSyncEventHandlerelapsed - elapsed time