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​

public void fill(String target, String text)

Clears an element and types into it, replacing what it held.

@param target a ref from map() such as "@e5", or a locator such as "text=Sign in" @param text the text the field should hold

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