EnableWebSettingForMobile Method

Supported in UFT 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 = MobileCenter.

On the Web tab:

  • The Use field is set to Micro Focus Mobile Center.
  • The Use settings on Mobile tab checkbox is selected.
Lab property = SRF.

On the Web tab:

  • The Use field is set to Micro Focus SRF.
  • The Desktop/Mobile OS field is set to Mobile.
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.

If the MobileLauncher Object is used to change the settings to SRF and mobile, but does not change the value of this method, a conflict error will occur.

Syntax

Visual Basic
Public Function EnableWebSettingForMobile()

Example

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

See also

MobileLauncher Object