Returns the name of the browser that is currently running the control.
public function GetBrowserType() : String;
A string value. Possible values:
- Mozilla Firefox
- internet explorer
These strings are defined in the common.js file as follows:
It uses the mouseover event to perform the selection. However, when running on Mozilla Firefox, it also has to send a click event.
if (_util.GetBrowserType() == QtpConstants.FireFox)
menuItem = item;
_util.Report(micDone, "Select", toSafeArray(new Array(Path)), "Selected " + Path);
Note: UFT 14.50 and earlier
If you are developing your toolkit using a UFT version of 14.50 or earlier, call the jQuery library using only
$ instead of
If errors occur due to conflicting jQuery libraries, we recommend you upgrade your toolkit using UFT 14.51 or later.