Back Method (iOS Controls)

Applies to TestComplete 15.45, last modified on December 01, 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 Back method selects the page that precedes the current page in the control.

Declaration

TestObj.Back()

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 first page is currently selected in the control, the Back method fails and posts an error message to the test log.

Example

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

See Also

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

Highlight search results