Skip to main content

fill

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

Clear a specific element and type text into it, replacing what it held — Vibium's fill; app_type adds to it instead. These call app_fill.

fill​

def fill(target: str, text: str) -> None

Clear an element and type into it, replacing what it held.

Examples​

Replace what a field holds​

device.fill("testid=search", "coffee")

Move a slider to a position​

device.fill("label=Volume", "0.3") # a slider: its position, from 0 to 1

The same call from the command line, mobium fill label=Volume 0.3, printed on an Android 15 emulator:

moved label=Volume to position 0.3 — it reads "3.0", was "5.0"

On a device​

mobium fill testid=username mobium on an Android 15 emulator

mobium fill testid=username mobium on an Android 15 emulator