osmates agent act
Act on a control by the ref elements gave it.
osmates agent act [<options>] <machine> <ref> <action>Arguments
<machine>RequiredThe machine's name or identifier, as vm_list shows it.
<ref>RequiredA ref from osmates agent elements.
<action>Requiredinvoke, toggle, expand, collapse, select, set_value, focus or scroll_into_view.
--value <value>For set_value: the text, or the number.
--coordinate-space <coordinate-space>display, screenshot or normalized_1000. Default: display.
--screenshot-width <screenshot-width>With --coordinate-space screenshot: the width of the screenshot the coordinates are in.
--timeout-seconds <timeout-seconds>Seconds the guest takes at most. Default: 5.
--jsonPrint the tool's structured content as one line of JSON.
JSON output
With --json, it prints an object with these fields.
JSON Schema: /schemas/0/cli/agent/act.json
answeredbooleanRequiredcoordinateSpacestringRequiredOne of
display,screenshot,normalized_1000.effectstringRequiredOne of
changed,unchanged,gone,unknown.elementobjectelement.guestDataarray of objectsRequiredpatternstringRequiredOne of
Invoke,Toggle,SelectionItem,ExpandCollapse,Value,RangeValue,SetFocus,ScrollItem.verificationobjectRequiredverification.evidencestringRequiredverification.statusstringRequiredOne of
verified,unverified,failed.
Fields nested deeper are in the schema.
Exit statuses
Its exit status is one of these.
| Status | Meaning |
|---|---|
| 0 | The command did what it was asked. |
| 1 | The command failed; with --json, standard error's last line is the error object. |
| 64 | The command line is wrong, as ArgumentParser found before the command ran. |
| 65 | What was given is wrong, found while the command ran; the same command fails until it changes. |
| 75 | The same command can work later with nothing changed, as while an update finishes. |
| 130 | Control-C cancelled what the command started. |