|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openqa.selenium.browserlaunchers.AsyncExecute
public class AsyncExecute
Spawn a process and return the process handle so you can close it yourself later.
Constructor Summary | |
---|---|
AsyncExecute()
|
Method Summary | |
---|---|
static int |
killProcess(Process process)
Forcibly kills a process, using OS tools like "kill" as a last resort |
static void |
sleepTight(long timeout)
Sleeps without explicitly throwing an InterruptedException |
static void |
sleepTightInSeconds(long timeoutInSeconds)
Sleeps without explicitly throwing an InterruptedException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsyncExecute()
Method Detail |
---|
public static void sleepTightInSeconds(long timeoutInSeconds)
timeoutInSeconds
- Sleep time in seconds.
RuntimeException
- wrapping an InterruptedException if one gets thrownpublic static void sleepTight(long timeout)
timeout
- the amout of time to sleep
RuntimeException
- wrapping an InterruptedException if one gets thrownpublic static int killProcess(Process process)
process
- The process to kill.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |