Runtime v2.81 · Updated Sep 30, 2026

text

Input text.

Syntax

text(value, /, focus_index=0)

Parameters

NameDescription
valueString
Text to input
Required · Positional only
No default
focus_indexInt
0: keep current focus, N>=1: focus N-th EditText before input
Optional · Positional or named
Default: 0

Returns

None — No return value

Behavior / side effects

Input text. focus_index=0 keeps current focus, 1 focuses first EditText, 2 focuses second EditText, etc.

Execution

  • Blocking: Conditional
  • Thread safety: Not guaranteed
  • Parallel execution: Conditional

Execution cost and waits depend on the documented operation. Keep mutable values in their owning flow; sharing arbitrary objects between flows has no general thread-safety guarantee.

Example

click(Point(300, 500))  # Click input field
wait(200)
text("Hello World", 1)

Errors / limitations

No additional limitations documented; follow the parameter and behavior contract above.

Related APIs

None