Gets a BrowserEngine option.
BrowserAPI.bdh
BrowserGetOption( sOption : in string, vValue : inout union ): boolean;
Parameter | Description |
---|---|
sOption | The
BrowserEngine option to be read. Can be one of the following values:
|
vValue | A variable that takes the value. |
true if successful
false otherwise
benchmark SilkPerformerRecorder use "Kernel.bdh" use "BrowserAPI.bdh" dcluser user VUser transactions TInit : begin; TMain : 1; var dclrand dcltrans transaction TInit begin end TInit; transaction TMain var nWaitTimeout : number; begin BrowserStart(BROWSER_MODE_DEFAULT, 800, 600); // get the wait timeout and print it BrowserGetOption(BROWSER_OPT_WAIT_TIMEOUT, nWaitTimeout); print(string(nWaitTimeout)); // set the wait timeout to a new value BrowserSetOption(BROWSER_OPT_WAIT_TIMEOUT, 6000); // revert it back to the old setting BrowserSetOption(BROWSER_OPT_WAIT_TIMEOUT, nWaitTimeout); end TMain;