Sets the replay compatibility by defining how locators are generated. During recording, Silk Performer automatically scripts this function to avoid compatibility issues. You can also manually add this function to your script to ensure flawless replay of older scripts with newer versions of Silk Performer. The replay compatibility can also be set in the Profile settings. If this function is omitted or removed from the script, the value configured in the Profile settings will be used.
BrowserAPI.bdh
BrowserReplayCompatibility( in sCompatibility : string ): boolean;
| Parameter | Description |
|---|---|
| sCompatibility | The replay compatibility option. Can be one of the following values:
|
true if successful
false otherwise
benchmark SilkPerformerRecorder
use "BrowserAPI.bdh"
dcluser
user
VUser
transactions
TMain : 1;
dcltrans
transaction TMain
begin
BrowserStart(BROWSER_MODE_DEFAULT, 800, 600);
BrowserReplayCompatibility(SP_19_0);
BrowserNavigate("http://demo.borland.com ")
end TMain;