isRunningFromCommandLine
boolean session.isRunningFromCommandLine ( )
Description
Returns whether or not we are currently running in the command line. This is a convenience method for doing something different in a script when running in the command line as opposed to other modes
Parameters
This method does not receive any parameters.
Return Values
Returns true if and only if the scrape is currently running in the command line.
Change Log
Version | Description |
---|---|
6.0.37a | Introduced for all editions. |
Examples
Retrieve Connection Timeout
if (session.isRunningFromCommandLine()) {
// do something only done in the command line
}
// do something only done in the command line
}
samt on 02/26/2016 at 2:51 pm
- Printer-friendly version
- Login or register to post comments