EnableWebSettingForMobile Method

Supported in versions 14.03 and later.

Description

Defines settings on the Web tab of the Record and Run Settings dialog box, based on the value of the MobileLauncher Object > Lab property.

Define the Lab property before using this method. This method then defines the Record and Run Settings as follows:

Lab property = DigitalLab.

(Versions 23.4 and later)

On the Web tab:

  • The Use field is set to Mobile Browser.
  • The Use settings on Mobile tab checkbox is selected.

Lab property = MobileCenter.

(Versions 2023 and earlier)

On the Web tab:

  • The Use field is set to Mobile Center, UFT Mobile, or Mobile Browser, depending on your OpenText Functional Testing version.
  • The Use settings on Mobile tab checkbox is selected.

Note: On versions 23.4 and later, this value is supported for backward compatibility.

Lab property = Disable.

The EnableWebSettingForMobile operation ends.

This method is required for running web tests on mobile devices, and ensures that the settings on the Web and Mobile tabs of the Record and Run Settings dialog remain consistent.

Syntax

Visual Basic
Public Function EnableWebSettingForMobile()

Example

Set the Mobile Settings in the Record and Run Settings dialog box

See also

MobileLauncher Object