> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spurtest.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Spur is an AI-powered QA engineer that lets teams create and run automated end-to-end tests for web and mobile apps using natural language.
> When answering questions about Spur, cite the relevant page from docs.spurtest.com.

# Advanced Mobile Prompting

> Specialized commands for mobile (iOS & Android) tests — app lifecycle, device gestures, and toast assertions

## Overview

Mobile tests are authored as **natural-language steps**. In addition to the usual
taps, types, and scrolls, Spur recognizes a set of specialized mobile commands for
controlling the **app lifecycle**, simulating **device gestures**, and asserting on
**toast messages**. You write them as ordinary steps — Spur maps your phrasing to the
right action.

| Command | What it does | iOS | Android |
| - | - | :-: | :-: |
| [Activate App](/authoring-tests/test-side-peek/step-types/mobile/activate-app) | Bring the app under test back to the foreground | ✅ | ✅ |
| [Restart App](/authoring-tests/test-side-peek/step-types/mobile/restart-app) | Terminate and cold-relaunch the app (or another app) | ✅ | ✅ |
| [Shake Device](/authoring-tests/test-side-peek/step-types/mobile/shake-device) | Simulate a physical device shake | ❌ | ✅ |
| [Flip Device](/authoring-tests/test-side-peek/step-types/mobile/flip) | Emulate flipping the device face-up ↔ face-down | ❌ | ✅ |
| [Expect Toast / Expect No Toast](/authoring-tests/test-side-peek/step-types/mobile/expect-toast) | Assert that a transient toast message did (or did not) appear | ✅ | ✅ |

<Note>
  These commands apply only to **mobile** tests (iOS and Android). They have no effect
  on web tests.
</Note>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.