Check box is rattling essential chemical cistron of whatsoever software spider web application page in addition to y'all volition break it on many pages in addition to thence patently nosotros ask to include it inwards our automation process. Selenium IDE has few commands which are especially developed for checkbox. In my before posts, nosotros had seen many depository fiscal establishment fit box related commands similar
"MANY MORE. Other two depository fiscal establishment fit box related commands are "waitForChecked" in addition to "waitForNotChecked". Let me clit y'all both alongside proper examples.
"waitForChecked" Command
"waitForChecked" ascendance is useful to await till targeted depository fiscal establishment fit box alter its condition from unchecked to checked. You volition break this variety of scenario sometimes. Maximum await fourth dimension volition move default timeout of your selenium IDE.
New Test | ||
Command | Target | Value |
open | ||
waitForChecked | //input[@id='check2'] | |
echo | Checkbox is checked now.. Please perform your side past times side action | |
pause | 2000 | |
check | //input[@id='check3'] |
You volition break all CHECKBOX RELATED COMMAND EXAMPLES ON THIS PAGE.
"waitForNotChecked" Command
Same every bit "waitForChecked" command, "waitForNotChecked" ascendance volition await till targeted depository fiscal establishment fit box alter its condition from checked to unchecked. Run higher upward in addition to bellow given examples inwards your selenium IDE window in addition to observer result
New Test | ||
Command | Target | Value |
open | ||
waitForNotChecked | //input[@id='check1'] | |
echo | Checkbox is UnChecked now.. Please perform your side past times side action | |
pause | 2000 | |
check | //input[@id='check3'] |
More interesting articles here :Generation Enggelmundus Internet Marketing Tool here :Zeageat IM http://www.software-testing-tutorials-automation.com/