You use the If Browser operation in your web tests to check the web browser that is currently used by the test. You may need to know this if your test contains some browser-specific operations which should be executed or skipped depending on the web browser that the test is using.
A license for TestComplete Web module.
If the current browser matches the browser specified by the operation parameters, the operation’s result value is True. Otherwise, its result is False.
The operation can have any other operation (or operations) as a child. The test executes them if the current web browser matches the browser specified by the operation parameters.
For information on how to make an operation a child of another operation, see the description of the Keyword Test editor’s Test Steps page.
When you add the operation to your keyword test, TestComplete displays a wizard that contains the following pages.
On this page you can choose the browser family to be checked:
If you want to clarify the browser version to be checked (for instance, if you need a specific version or a 32-bit or 64-bit edition), click Next. You will be able to specify the version details on the next page of the wizard.
Specify Browser Parameters
On this page, you can specify additional parameters for the browser that you chose on the Select Browser page. The page contains the following parameters:
Optional. Specifies the browser version to be checked.
You can specify the version in various numeric formats: major version only, major + minor version, major + minor + build number. Literal characters are not taken into account. Below are some examples that are valid for Internet Explorer 11:
It is recommended that only the major version be specified. When specifying a minor version and build number, check whether you entered correct values. A misprint in one of the digits will cause the operation to fail, as it will not be able to find the specified browser.
Specifies which browser edition will be checked: a 32-bit or a 64-bit one.