RefreshApplicationsInfo Method

Applies to TestComplete 14.0, last modified on January 23, 2019

Description

Refreshes information about the applications installed on an iOS device.

Declaration

ApplicationManagerObj.RefreshApplicationsInfo()

ApplicationManagerObj An expression, variable or parameter that specifies a reference to an ApplicationManager object
Result None

Applies To

The method is applied to the following object:

Result Value

None.

Example

The following code demonstrates the usage of the RefreshApplicationsInfo method:

JavaScript, JScript

function Test()
{
  var deviceObj = Mobile.Device("iPhone");
  var appManagerObj = deviceObj.ApplicationManager;
  // Perform some actions over installed applications
  // For instance, install applications or remove them
  …

  // Refresh information on installed applications
  appManagerObj.RefreshPackagesInfo();
}

Python

def Test():
  deviceObj = Mobile.Device("iPhone")
  appManagerObj = deviceObj.ApplicationManager
  # Perform some actions over installed applications
  # For instance, install applications or remove them
  # ...

  # Refresh information on installed applications
  appManagerObj.RefreshPackagesInfo()

VBScript

Sub Test()
  Set deviceObj = Mobile.Device("iPhone")
  Set appManagerObj = deviceObj.ApplicationManager
  ' Perform some actions over installed applications
  ' For instance, install applications or remove them
  …

  ' Refresh information on installed applications
  appManagerObj.RefreshPackagesInfo
End Sub

DelphiScript

procedure Test();
var deviceObj, appManagerObj;
begin
  deviceObj := Mobile.Device('iPhone');
  appManagerObj := deviceObj.ApplicationManager;
  // Perform some actions over installed applications
  // For instance, install applications or remove them
  …

  // Refresh information on installed applications
  appManagerObj.RefreshPackagesInfo();
end;

C++Script, C#Script

function Test()
{
  var deviceObj = Mobile["Device"]("iPhone");
  var appManagerObj = deviceObj["ApplicationManager"];
  // Perform some actions over installed applications
  // For instance, install applications or remove them
  …

  // Refresh information on installed applications
  appManagerObj["RefreshPackagesInfo"]();
}

See Also

ApplicationManager Object
InstalledApplication Property

Highlight search results