VirtualBrowserInfo Object

Applies to TestComplete 14.30, last modified on November 21, 2019

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 78

    If you have a TestComplete version earlier than 12.42, your version of the SmartBear Test Extension will be incompatible with newer versions of the Chrome web browser. To test web applications in Chrome 78, you will have to upgrade your TestComplete to some later version. We recommend using version 14.30.

    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 7 browser emulator.

JavaScript, JScript

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

Python

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

VBScript

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

DelphiScript

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

C++Script, C#Script

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

See Also

Testing Mobile Web Applications Using Emulator
VirtualBrowsers Object

Highlight search results