web » assertSelectOptionsAbsent(locator,options)
Description
This command asserts that the specified options
MUST NOT be found in the SELECT
element as denoted by locator
.
Note that the options
parameter represents the OPTION
text, not the value
attribute of the OPTION
elements.
Each of the OPTION
text is separated by nexial.textDelimi
or a
newline character. For example,
The highlighted (blue) portions are the text of the OPTION
elements mentioned above. So, if one desires to assert that
this SELECT
element DOES NOT contain, say, русский
and Polskie
, the following would be the use of this command:
As shown above, the target OPTION
text is separated by comma, which is the default value of
nexial.textDelimi
. One can also use newline character to separate
each OPTION
text.
The corresponding step is considered as FAIL if:
- If the target
SELECT
element cannot be located via the specifiedlocator
. - If the target
SELECT
element contains one or more of the specifiedOPTION
text.
Parameters
- locator - the locator of the target
SELECT
element. - options - the
OPTION
text that MUST NOT exist under the targetSELECT
element.