EnableWebSettingForMobile Method

Supported in UFT One versions 14.03 and higher.

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.

(UFT One 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.

(UFT One 2023 and earlier)

On the Web tab:

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

Note: On UFT One 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