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 IWebBrowserACTF
timeout
- timeout valuewaitActive
- if true, wait Shell
becomes activerunnable
- target Runnable
to invokepublic double getInterval()
WaitExecSyncEventHandler
getInterval
in interface WaitExecSyncEventHandler
public boolean canRun(double elapsed)
WaitExecSyncEventHandler
canRun
in interface WaitExecSyncEventHandler
elapsed
- elapsed time