BrowserGetIEMode Function

Action

Returns the current IE mode, which is set in the registry for the browser-driven Web load testing feature.

Include file

BrowserAPI.bdh

Syntax

BrowserGetIEMode(): number;

Return value

Returns the value of the IE mode which is set in the registry:
  • 0: BROWSER_IE_DEFAULT
  • 7000: BROWSER_IE7_MODE
  • 8000: BROWSER_IE8_MODE
  • 8888: BROWSER_IE8_REGARDLESS_OF_DOCTYPE
  • 9000: BROWSER_IE9_MODE
  • 9999: BROWSER_IE9_REGARDLESS_OF_DOCTYPE
  • 10000: BROWSER_IE10_MODE
  • 10001: BROWSER_IE10_REGARDLESS_OF_DOCTYPE
  • 11000: BROWSER_IE11_MODE
  • 11001: BROWSER_IE11_REGARDLESS_OF_DOCTYPE

Example

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
    ieMode : number;
  begin
    BrowserStart(BROWSER_MODE_DEFAULT, 800, 600);
    
    // retrieve the IE mode and store it into a variable (ieMode)
    ieMode:= BrowserGetIEMode();    
    // print out the ieMode
    print(string(ieMode));
  end TMain;