RunOptions Property

Applies to TestComplete 15.63, last modified on April 23, 2024

Description

The RunOptions property sets command-line arguments for the Google Chrome mobile emulator in mobile web tests. These arguments are used only with the given mobile browser profile (specified by the VirtualBrowserInfoObj object).

Declaration

VirtualBrowserInfoObj.RunOptions

Write-Only Property String
VirtualBrowserInfoObj An expression, variable or parameter that specifies a reference to a VirtualBrowserInfo object

Applies To

The property is applied to the following object:

Property Value

A string with the command-line arguments for the Chrome mobile emulator, separated by spaces.

Remarks

  • The command-line arguments set by the RunOptions property will be used the next time the test starts the Chrome mobile emulator with the given browser profile.

  • The RunOptions property value is kept throughout the current test run, but is not saved between test runs.

  • TestComplete always launches the Chrome mobile emulator with the following arguments, so so there is no need to specify them in RunOptions:

    • --user-agent
    • --window-size
    • --page-size
    • --disable-hang-monitor
    • --disable-translate
  • For a complete list of Chrome command-line arguments, see:

    http://peter.sh/experiments/chromium-command-line-switches/

Example

For the RunOptions usage examples, see Specifying Additional Parameters for Mobile Browser Emulator.

See Also

Testing Mobile Web Applications Using Emulator
VirtualBrowserInfo Object
Name Property
UserAgent Property
ScreenHeight Property
ScreenWidth Property
DevicePixelRatio Property

Highlight search results