web » checkAll(locator,waitMs)
Description
This command automates the “checking” of all
CheckBox
elements matching the specified locator
. If the locator
does not resolve to a valid Checkbox element, or if the
resolved Checkbox element is not valid, or if the resolve Checkbox element is already checked, then no further action
is executed upon such element. If a matched Checkbox element is already “checked”, then it will be skipped over.
The waitMs
parameter allows one to inject an additional wait time between each “check”. This can be useful in
situation where checking a Checkbox element activates a web rendering or page refresh event. Set it to 0
if no
wait is necessary.
Parameters
- locator - the locator pointing to one or more Checkbox elements.
- waitMs - the time to wait between each “check”, in milliseconds.