hubcap tripleclick — Triple-click an element

When to use

Triple-click to select a paragraph or line of text. Use selection to read the selected text afterward.

Usage

hubcap tripleclick <selector>

Arguments

ArgumentTypeRequiredDescription
selectorstringyesCSS selector of the element to triple-click

Flags

None.

Output

FieldTypeDescription
clickedbooleanWhether the triple-click succeeded
selectorstringThe selector that was used
{"clicked":true,"selector":"p.intro"}

Errors

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

Examples

Triple-click to select a paragraph:

hubcap tripleclick 'p.intro'

Triple-click a paragraph, then read the selected text:

hubcap tripleclick 'p.intro' && hubcap selection

See also