Showing posts with label removeSelection command. Show all posts
Showing posts with label removeSelection command. Show all posts

"assertNotSelectedLabel" and "assertNotSelectedLabels" are very useful assertions in selenium IDE software for drop down and list box type elements. However you can look at other related commands examples on this Link. As you know, If any of the above assert command will fail, selenium IDE will stop

"addSelection" Command

In multiselect list box, when you need to select multiple values from list box, "addSelection" command will be helpful in selenium IDE. "Select" command will select only single value from list box but "addSelection" command will add new value selection in list box means previously selected values will remain selected as it is and will add new selection.

Run bellow given example yourself to understand it better. In this example, first i am adding value "Japan" from list box using "addSelection" command and next 3 commands will select 3 new values using "addSelection" command.

New Test
CommandTargetValue
openhttp://only-testing-blog.blogspot.com/2013/09/testing.html
addSelectionname=FromLBlabel=Japan
addSelectionname=FromLBlabel=Mexico
addSelectionname=FromLBlabel=India
addSelectionname=FromLBlabel=Spain

VIEW PRACTICAL EXAMPLE IN SELENIUM WEBDRIVER OF addSelection COMMAND

"removeSelection" Command

"removeSelection" command works in opposite of "addSelection" command. It will remove selection of