Skip to content

Pilot

Pilot

Pilot object to drive an app.

app() property

exit(result) async

Exit the app with the given result.

Parameters:

Name Type Description Default
result object

The app result returned by run or run_async.

required

pause(delay=50 / 1000) async

Insert a pause.

Parameters:

Name Type Description Default
delay float

Seconds to pause. Defaults to 50ms.

50 / 1000

press(*keys) async

Simulate key-presses.

Parameters:

Name Type Description Default
*keys str

Keys to press.

()

wait_for_animation() async

Wait for any animation to complete.