Next Method (iOS Controls)

Applies to TestComplete 15.20, last modified on January 19, 2022
This method 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

The Next method selects the page that follows the current page in the control.

Declaration

TestObj.Next()

TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
Result None

Applies To

The method is applied to the following objects:

View Mode

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

Result Value

None.

Remarks

If the last page is currently selected in the control, the Next method fails and posts an error message to the test log.

Example

To view an example that demonstrates how to use the Next method to navigate through application pages, see Navigating Through Application Pages.

See Also

Testing iOS Applications (Legacy)
Navigating Through Application Pages
Working with Table View in Paging Mode
Working with Multiline Edit Controls in Paging Mode
Back Method (iOS Controls)
SelectPage Method (Specific to iOS PageControl Objects)

Highlight search results