BrowserBack Function

Action

Equivalent to clicking the browser Back button.

Include file

BrowserAPI.bdh

Syntax

BrowserBack(): 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);    
    BrowserNavigate("http://demo.borland.com/");    
    BrowserClick("//A[@textContents='Demo Application']");
    
    BrowserBack();  // go one step back in your browser's history
    
    BrowserForward(); // go one step forward in your browser's history
  end TMain;