Ischecked
Gets whether a toggle-button (checkbox/radio) is checked.
Fails if the specified element doesn't exist or isn't a
toggle-button.
Required Attributes
Usage Examples
Example #1
<selenium baseurl="http://somewhere.com">
<for property="i" range="0..6">
<check locator="//input[@name='gf-chart-ticker${i}']" />
<assert>
<isChecked locator="//input[@name='gf-chart-ticker${i}']" />
</assert>
</for>
<for property="i" range="0..6">
<uncheck locator="//input[@name='gf-chart-ticker${i}']" />
<assert>
<not>
<isChecked locator="//input[@name='gf-chart-ticker${i}']" />
</not>
</assert>
</for>
</selenium>