BrowserNavigate Function

Action

Navigates to a specified URL.

Include file

BrowserAPI.bdh

Syntax

BrowserNavigate( sUrl   : in string,
                 sTimer : in string optional ): boolean;
Parameter Description
sUrl The destination URL.
sTimer Optional: Name of the timer used for page measurements. If this parameter is omitted, no measurements are performed.

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_DISPLAY_VISIBLE, 800, 600); 
    BrowserNavigate("http://demo.borland.com/"); // navigate to demo.borland.com
  end TMain;