assert
Asserts that the matched node satisfies matcher, and returns this interaction for chaining.
This is the general form of the assertion vocabulary: any matcher - including one composed with SwingMatcher.and, SwingMatcher.or and SwingMatcher.not, or a structural one such as SwingMatcher.hasParent - can be asserted on a node.
onNodeWithTag("agree").assert(SwingMatcher.isSelected())Content copied to clipboard
Return
this interaction, for chaining a further assertion.
Parameters
matcher
the condition the node must satisfy; its description is what the failure names.