AppInfo.vendor Property

Applies to TestComplete 14.10, last modified on June 5, 2019

Description

The vendor property returns the name of an application’s vendor.

Declaration

AppInfo.vendor

Read-Only Property String

Applies To

The property is applied to the following object:

Property Value

A string that holds the name of the vendor.

Example

The code below obtains information about Firefox's vendor and posts its name to the test log.

JavaScript, JScript

function AppVendor()
{
  // Launches the Firefox web browser and obtains the process
  Browsers.item(btFirefox).Run("about:blank");
  var firefox = Sys.Browser("firefox");
  // Obtains information about the application
  var AppInfo = firefox.AppInfo;
  
  // Obtains information about the application's vendor
  // and posts its name to the test log
  var Vendor = AppInfo.Vendor;
  Log.Message(Vendor);
}

/*
The routine produces the following output:

Mozilla
*/

Python

def AppVendor():
  # Launches the Firefox web browser and obtains the process
  Browsers.item[btFirefox].Run("about:blank")
  firefox = Sys.Browser("firefox")
  # Obtains information about the application
  AppInfo = firefox.AppInfo
  
  # Obtains information about the application"s vendor
  # and posts its name to the test log
  Vendor = AppInfo.Vendor
  Log.Message(Vendor)

# The routine produces the following output:
# Mozilla

VBScript

Sub AppVendor
  ' Launches the Firefox web browser and obtains the process
  Browsers.item(btFirefox).Run("about:blank")
  Set firefox = Sys.Browser("firefox")
  ' Obtains information about the application
  Set AppInfo = firefox.AppInfo
  
  ' Obtains information about the application's vendor
  ' and posts its name to the test log
  Vendor = AppInfo.Vendor
  Log.Message(Vendor)
End Sub

' The routine produces the following output:
' Mozilla

DelphiScript

function AppVendor;
var firefox, AppInfo, Vendor;
begin
  // Launches the Firefox web browser and obtains the process
  Browsers.item(btFirefox).Run('about:blank');
  firefox := Sys.Browser('firefox');
  // Obtains information about the application
  AppInfo := firefox.AppInfo;
  
  // Obtains information about the application's vendor
  // and posts its name to the test log
  Vendor := AppInfo.Vendor;
  Log.Message(Vendor);
end;

{
The routine produces the following output:

Mozilla
}

C++Script, C#Script

function AppVendor()
{
  // Launches the Firefox web browser and obtains the process
  Browsers["item"](btFirefox)["Run"]("about:blank");
  var firefox = Sys["Browser"]("firefox");
  // Obtains information about the application
  var AppInfo = firefox["AppInfo"];
  
  // Obtains information about the application's vendor
  // and posts its name to the test log
  var Vendor = AppInfo["Vendor"];
  Log["Message"](Vendor);
}

/*
The routine produces the following output:

Mozilla
*/

See Also

AppInfo.name Property

Highlight search results