VirtualBrowserInfo Object

Applies to TestComplete 12.60, last modified on September 17, 2018

Description

A VirtualBrowserInfo object corresponds to a browser profile that can be used by the mobile browser emulator. VirtualBrowserInfo objects are contained in the VirtualBrowsers collection and can be obtained using the following properties:

A VirtualBrowserInfo object contains the browser profile information and provides methods for launching the mobile browser emulator with the given profile.

Requirements

  • A license for TestComplete Web module

  • The Web Testing and Chrome Support plugins (they are part of the Web module)

  • Google Chrome 69

    If you have a TestComplete version earlier than 12.42, then, to test web applications in Chrome 69, you will have to upgrade your TestComplete version to version 12.60.

    If you use a later version of Google Chrome, check whether a patch is available for it.

For details, see Requirements for Mobile Web Testing Using Emulator.

Members

Example

The code below opens a web site in the iPhone 5 browser emulator.

JavaScript, JScript

VirtualBrowsers.Item("Apple iPhone 5").Run("http://m.smartbear.com");

Python

VirtualBrowsers.Item["Apple iPhone 5"].Run("http://m.smartbear.com");

VBScript

Call VirtualBrowsers.Item("Apple iPhone 5").Run("http://m.smartbear.com")

DelphiScript

VirtualBrowsers.Item['Apple iPhone 5'].Run('http://m.smartbear.com');

C++Script, C#Script

VirtualBrowsers["Item"]("Apple iPhone 5")["Run"]("http://m.smartbear.com");

See Also

Testing Mobile Web Applications Using Emulator
VirtualBrowsers Object

Highlight search results