pressBackButton Command

Purpose: Simulates pressing the back button on the device, useful for navigating back in app flows or closing modal dialogs.

Syntax:

pressBackButton

Example: To return to the previous screen:

pressBackButton

This command is effective in scenarios where a return action is needed without explicitly interacting with a UI element.

Last updated