osmates agent wait
Wait until the screen changes, or until it is still.
osmates agent wait [<options>] <machine>Arguments
<machine>RequiredThe machine's name or identifier, as vm_list shows it.
--until <until>changed or stable. Default: changed.
--since-frame <since-frame>A frameId from an earlier result, to wait for a change since.
--quiet-ms <quiet-ms>With --until stable: milliseconds without a new frame. Default: 500.
--timeout-seconds <timeout-seconds>Seconds to wait at most. Default: 10.
--screenshotTake a screenshot once the wait ends.
--display <display>The display, counted from 0. Default: 0. A Windows machine on the OSMates engine can have up to 4.
--max-long-edge <max-long-edge>The longest side of the image in pixels. Default: 1280.
--format <format>jpeg or png.
--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/wait.json
frameIdstringRequiredsatisfiedbooleanRequiredscreenshotobjectscreenshot.displayintegerAt least 0.
screenshot.displayHeightintegerRequiredAt least 0.
screenshot.displayWidthintegerRequiredAt least 0.
screenshot.formatstringRequiredOne of
png,jpeg.screenshot.frameIdstringscreenshot.heightintegerRequiredAt least 0.
screenshot.regionarray of integersExactly 4 items.
screenshot.scalenumberRequiredscreenshot.widthintegerRequiredAt least 0.
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. |