Skip to main content

SeeTest Client - GetContextList

info

Please note that this tool is classified as a Legacy tool. We recommend transitioning to our updated solutions to maintain optimal performance and security in your workflows. For more information on this matter, please reach out to technical support .

GetContextList()

Description

Return a list of current contexts including all web views.

Parameters

No parameters

Usage

The following table describes the meaning of each element in the output list:

Content
NON_INSTRUMENTED
INSTRUMENTED
WEBVIEW_0
.
.
WEBVIEW_N
info

Note: This command may be called only if you have set an active device (for example, using either SeeTest Client - SetDevice  or SeeTest Client - WaitForDevice ).

Command output on an iOS device with instrumented application with multiple web views.

Code Examples

Java Example

String[] strArray = client.getContextList();

C# Example Expand source

string [] strArray = client.GetContextList();

VBScript Example Expand source

client.GetContextList()
ListSize = Cint (client.GetLastStringArrayLength)-1
ReDim GetValue(ListSize)
For Iterator = 0 To (ListSize)
GetValue(Iterator) = client.GetLastStringFromArray(Iterator)
Next
Report

Python Example Expand source

var = self.client.getContextList()

Perl Example Expand source

my $strArray = $client->getContextList();