Skip to content

vibium find

Find elements by CSS selector or semantic locator.

vibium find [selector] [flags]
vibium find [command]
--all Find all matching elements
--limit int Maximum number of elements to return (with --all) (default 10)
--timeout timeout Max time to wait, e.g. 5s or 5000 (bare number = milliseconds) (default 30s)

Find element by alt attribute.

vibium find alt [alt] [flags]
--timeout timeout Max time to wait, e.g. 5s or 5000 (bare number = milliseconds) (default 30s)
Terminal window
vibium find alt "Logo"

Find input by associated label text.

vibium find label [label] [flags]
--timeout timeout Max time to wait, e.g. 5s or 5000 (bare number = milliseconds) (default 30s)
Terminal window
vibium find label "Email"
# → @e1 [input type="email"] placeholder="Email"

Find element by placeholder attribute.

vibium find placeholder [placeholder] [flags]
--timeout timeout Max time to wait, e.g. 5s or 5000 (bare number = milliseconds) (default 30s)
Terminal window
vibium find placeholder "Search..."
# → @e1 [input] placeholder="Search..."

Find element by ARIA role.

vibium find role [role] [flags]
--name string Accessible name filter
--timeout timeout Max time to wait, e.g. 5s or 5000 (bare number = milliseconds) (default 30s)
Terminal window
vibium find role button
# → @e1 [button] "Submit"
vibium find role heading --name "Example"
# Find heading with accessible name "Example"

Find element by data-testid attribute.

vibium find testid [testid] [flags]
--timeout timeout Max time to wait, e.g. 5s or 5000 (bare number = milliseconds) (default 30s)
Terminal window
vibium find testid "submit-btn"
# → @e1 [button] data-testid="submit-btn"

Find element by text content.

vibium find text [text] [flags]
--timeout timeout Max time to wait, e.g. 5s or 5000 (bare number = milliseconds) (default 30s)
Terminal window
vibium find text "Sign In"
# → @e1 [button] "Sign In"

Find element by title attribute.

vibium find title [title] [flags]
--timeout timeout Max time to wait, e.g. 5s or 5000 (bare number = milliseconds) (default 30s)
Terminal window
vibium find title "Close"

Find element by XPath expression.

vibium find xpath [expression] [flags]
--timeout timeout Max time to wait, e.g. 5s or 5000 (bare number = milliseconds) (default 30s)
Terminal window
vibium find xpath "//div[@class='main']"
# → @e1 [div.main] ...

find matches elements the way a human would describe them, returning one or more @eN references you can pass to interaction commands.

VariantMatches
vibium find text "<text>"Elements whose visible text contains <text>.
vibium find label "<label>"Form fields whose <label> is <label>.
vibium find placeholder "<text>"Inputs with that placeholder.
vibium find role <role>Elements with the given ARIA role (button, searchbox, link, …).

Each match is printed in the same form as vibium map: a line per element with its @eN reference, role, and a short description.

Terminal window
vibium find text "Sign in"
vibium find label "Email"
vibium find placeholder "Search..."
vibium find role button

Typical workflow — find, then act on the reference:

Terminal window
$ vibium find label "Email"
@e2 input label="Email"
$ vibium fill @e2 "alice@example.com"