wValue Property (Android GridView Object)

Applies to TestComplete 15.68, last modified on October 03, 2024
This property is available in legacy mobile tests that work with devices connected to the local computer. To learn how to simulate user actions in newer cloud-compatible mobile tests, see the Simulating user actions in tests section.

Description

Use the wValue property to obtain the value held in the specified control cell.

Declaration

TestObj.wValue(Row, Column)

Read-Only Property Integer
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
Row [in]    Required    Integer    
Column [in]    Required    Integer    

Applies To

The property is applied to the following object:

View Mode

This property is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.

Parameters

The property has the following parameters:

Row

Specifies the row (by its index) that contains the cell whose value you want to obtain or set. The index is zero-based, that is, the first row has index 0, the second - 1, and so on. The index of the last row is wRowCount-1.

Column

Specifies the column (by its index) that contains the cell whose value you want to obtain or set. The index is zero-based, that is, the first column has index 0, the second - 1, and so on. The index of the last column is wColumnCount-1.

Property Value

The value in the specified cell. If the cell is not found, wValue returns the null value (Nothing in VBScript, nil in DelphiScript, None in Python, null in JavaScript, JScript, C++Script and C#Script) and posts an error message to the test log.

Remarks

You can use the wValue property along with the wRowCount and wColumnCount properties to iterate through table cells.

Example

To view an example that demonstrates how to use the wValue property, see Obtaining Cell Values in Android Grid View Controls.

See Also

About Testing Android Applications (Legacy)
Obtaining Cell Values in Android Grid View Controls
wRowCount Property (Android Controls)
wColumnCount Property (Android Controls)

Highlight search results