Skip to content

Latest commit

 

History

History
93 lines (66 loc) · 1.31 KB

is.md

File metadata and controls

93 lines (66 loc) · 1.31 KB
title vibium is

Check element state (visible, enabled, set, actionable).

Synopsis

vibium is [flags]
vibium is [command]

Subcommands

vibium is actionable

Check actionability of an element (Visible, Stable, ReceivesEvents, Enabled, Editable).

vibium is actionable [url] [selector] [flags]
vibium is actionable "a"
# Output:
# Checking actionability for selector: a
# ✓ Visible: true
# ✓ Stable: true
# ✓ ReceivesEvents: true
# ✓ Enabled: true
# ✗ Editable: false

vibium is actionable https://example.com "a"
# Navigate first, then check

vibium is enabled

Check if an element is enabled.

vibium is enabled [selector] [flags]

Flags

    --fail   Exit non-zero when the answer is false
vibium is enabled "button[type=submit]"
# Prints true or false

vibium is set

Check if a checkbox or radio is checked.

vibium is set [selector] [flags]

Flags

    --fail   Exit non-zero when the answer is false
vibium is set "input[type=checkbox]"
# Prints true or false

vibium is visible

Check if an element is visible on the page.

vibium is visible [selector] [flags]

Flags

    --fail   Exit non-zero when the answer is false
vibium is visible "h1"
# Prints true or false