hubcap dblclick — Double-click an element

When to use

Double-click an element. Use click for a single click, or tripleclick to select an entire paragraph or line of text.

Usage

hubcap dblclick <selector>

Arguments

ArgumentTypeRequiredDescription
selectorstringyesCSS selector of the element to double-click

Flags

None.

Output

FieldTypeDescription
clickedbooleanWhether the double-click succeeded
selectorstringThe selector that was used
{"clicked":true,"selector":"#editable"}

Errors

ConditionExit codeStderr
Element not found1error: element not found: <sel>
Chrome not connected2error: connecting to Chrome: ...
Timeout3error: timeout

Examples

Double-click a list item to edit it:

hubcap dblclick '.item-label'

Double-click, then read the resulting text input value:

hubcap dblclick '.editable-cell' && hubcap value '.editable-cell input'

See also