Sets the browser on the state that results from sequentially applying the given action to each of the HTML elements selected by the given selector.
Sequence.Chain · [selector] · [action]
- The selector that selects the elements to which the action will be applied.
- The action to apply to each of the elements.
A sequence that contains a single browser state.
This action is particularly useful when the desired browser state is the result of performing some action on each of the HTML elements selected by a selector. For instance, suppose a list of check boxes need to be clicked before performing some other action on the page. To do this, a selector can be created that selects all the check boxes. Supposing this selector was called
CheckBox, the following code would click every check box, and actions below would run after all check boxes have been clicked:
Sequence.Chain · Select.CheckBox · Browser.Click