Incubator Command Set
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
- 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 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 |
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
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 |
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
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 |
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
Examples
Pause test execution for 4s.
Command | Parameter | Optional Parameter | |
---|---|---|---|
wait | 4 |
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
Examples
Alert the value of an internal js variable (stateInternal) for debugging.
Command | Parameter | Optional Parameter | |
---|---|---|---|
exec-js | alert(stateInternal); |