Incubator Command Set

Assert Focus Asserts, that an item owns the focus.

This command is not part of the Default Command Set. You have to register the Incubator Command Set first (see Configuration).

Asserts, that an item owns the focus.

Parameters

wpath
The WPath identifying the item to check.
Input Field, Password Field, Text Area, File Upload
The path is usually the label of the field.
Single Select Box, Multiple Select Box
The path is usually the label of the select box, a > and then the text of the option to check.
Radio Group
Use the label of the radio button you like to select. If this text is not unique you can as always define some words before to make the path unique.
Check Box
Use the text usually placed after the checkbox you like to select. If this text is not unique you can as always define some words before to make the path unique.
It is possible to use the '*' and the '?' character als wildcards; '*' matches zero or many characters; '?' matches one single character.
It is also possible to define a > separated list of words (with '*' and '?' if needed). Then this command checks the first element after all these words.

Examples

Assert that an entry field owns the focus

Assert that the entry field labled 'Color' owns the focus.

Command Parameter Optional Parameter
assert-focus Color
Save Bookmark Bookmarks the current page.

This command is not part of the Default Command Set. You have to register the Incubator Command Set first (see Configuration).

Bookmarks the current page.

Parameters

name
The name of the bookmark. If there is already a bookmark with this name, it will be overwritten.

Examples

Bookmark a page, do something else and go back to the bookmarked page.

Command Parameter Optional Parameter
open-url https://www.wetator.org
save-bookmark WETATOR
open-url http://htmlunit.sourceforge.net/
open-bookmark WETATOR
assert-content Wetator is a tool for automatic
Open Bookmark Opens the url previously saved as bookmark with the given name.

This command is not part of the Default Command Set. You have to register the Incubator Command Set first (see Configuration).

Opens the url previously saved as bookmark with the given name.

Parameters

name
The name of the bookmark.

Examples

Bookmark a page, do something else and go back to the bookmarked page.

Command Parameter Optional Parameter
open-url https://www.wetator.org
save-bookmark WETATOR
open-url http://htmlunit.sourceforge.net/
open-bookmark WETATOR
assert-content Wetator is a tool for automatic
Wait Waits some seconds before continuing with the test execution.

This command is not part of the Default Command Set. You have to register the Incubator Command Set first (see Configuration).

Waits the given time before continuing with the test execution.

Please use the wait command only if all other options do not work. Consider using the Assert Content command (defining a wait time) instead of this command.

Parameters

wait
The time to wait in seconds before continuing.

Examples

Pause test execution for 4s.

Command Parameter Optional Parameter
wait 4
Exec JS Execute the given javascript in the context of the current page.

This command is not part of the Default Command Set. You have to register the Incubator Command Set first (see Configuration).

Execute the given javascript in the context of the current page.

Parameters

script
The script to execute.

Examples

Alert the value of an internal js variable (stateInternal) for debugging.

Command Parameter Optional Parameter
exec-js alert(stateInternal);