BrowserCreateWindow Function

Action

Opens a new window (or a new tab in the browser) programmatically. Usually a BrowserNavigate has to be executed afterwards.

Include file

BrowserAPI.bdh

Syntax

BrowserCreateWindow(): boolean;

Return value

  • true if successful

  • false otherwise

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
  begin
    BrowserStart(BROWSER_MODE_DEFAULT, 800, 600);
    BrowserCreateWindow(); // create new window (tab)
    BrowserNavigate("http://demo.borland.com/");  // navigate to demo.borland.com
  end TMain;