diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-05-21 19:49:08 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-05-21 19:55:21 +0200 |
commit | 8bd025a75e295609647af0510544efb857678ec8 (patch) | |
tree | 1229c4f7f47d6f3c5e3c547b3c03bad0b99e975a /nixos/doc | |
parent | 235c2228ca9f608f898bc455c9b5bb1e3c4cb3f0 (diff) | |
download | nixpkgs-8bd025a75e295609647af0510544efb857678ec8.tar nixpkgs-8bd025a75e295609647af0510544efb857678ec8.tar.gz nixpkgs-8bd025a75e295609647af0510544efb857678ec8.tar.bz2 nixpkgs-8bd025a75e295609647af0510544efb857678ec8.tar.lz nixpkgs-8bd025a75e295609647af0510544efb857678ec8.tar.xz nixpkgs-8bd025a75e295609647af0510544efb857678ec8.tar.zst nixpkgs-8bd025a75e295609647af0510544efb857678ec8.zip |
nixos/test-driver: Add new waitForText function.
As promised in the previous commit, this can be used similarly to $machine->waitForWindow, where you supply a regular expression and it's retrying OCR until the regexp matches. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'nixos/doc')
-rw-r--r-- | nixos/doc/manual/development/writing-nixos-tests.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/doc/manual/development/writing-nixos-tests.xml b/nixos/doc/manual/development/writing-nixos-tests.xml index 6224be0ca1a..322778d1c20 100644 --- a/nixos/doc/manual/development/writing-nixos-tests.xml +++ b/nixos/doc/manual/development/writing-nixos-tests.xml @@ -245,6 +245,13 @@ startAll; </varlistentry> <varlistentry> + <term><methodname>waitForText</methodname></term> + <listitem><para>Wait until the supplied regular expressions matches + the textual contents of the screen by using optical character recognition + (see <methodname>getScreenText</methodname>).</para></listitem> + </varlistentry> + + <varlistentry> <term><methodname>waitForWindow</methodname></term> <listitem><para>Wait until an X11 window has appeared whose name matches the given regular expression, e.g., |