SetWebCheckBox |
Top Previous Next |
×V4.2Ø
Syntax - SetWebCheckBox <Selection> <Element Identifier> Where: <Selection> is either the keyword Checked or Unchecked. <Element Identifier> is a valid web element identifier as described in Identifying an Element.
Description: This command causes EMUE to either check or uncheck a check box on a web page. If the box is already checked and the command indicates that the checkbox should be checked, nothing will change. Likewise, if the checkbox is unchecked and the command dictates that the checkbox should be unchecked, nothing will change. However, if the checkbox is not currently checked and the command has Checked for its selection, the box will be checked. If the box is currently checked and the command indicates that it should be unchecked, EMUE will click the check box to uncheck it. The same behavior could be accomplished using the GetWebValue command to determine the state of the checkbox and the ClickWebElement to click the checkbox if necessary.
Soarian SmartUI: Yes Chrome: Yes
Sample: The following statement will ensure that the checkbox identified is checked. SetWebCheckBox Checked "Browser=Main:sframeInner->wellFrame->tabWell1:checkbox,ID=ctlcmpAccidentRelated__,INDEX=1"
See Also:
|