Selenium IDE tutorials for "verifySelectedValue" and "verifySelectedValues" with example

Published many tutorial articles of selenium IDE related to verification commands with examples. "verifySelectedValue" and "verifySelectedValues" are verification commands and useful to verify the selection of values from list box or drop down of your software web application."verifySelectedValue" command
works with single selection from list box and "verifySelectedValues" works with multiple selection from list box.

"verifySelectedValue" Command 
"verifySelectedValue" command facilitate selenium ide to verify single selection from list box. It will check value attribute of selected value and verify that is it match with expected value? Pass if Yes. Else return error like '[error] Actual value 'India' did not match 'Germany''.

"verifySelectedValues" Command
"verifySelectedValues" will works same as "verifySelectedValue" command but you can use it for single or multiple selections too. It will pass if match found. Else it will send error message like '[error] Actual value 'India,Germany' did not match 'India''

New Test
CommandTargetValue
openhttp://only-testing-blog.blogspot.com/2013/09/testing.html
addSelectionname=FromLBlabel=India
verifySelectedValuename=FromLBGermany
verifySelectedValuename=FromLBIndia
addSelectionname=FromLBlabel=Germany
verifySelectedValuename=FromLBIndia
verifySelectedValuename=FromLBIndia,Germany

Look in to above given example. I have used both commands 2 time. 1st command from both will fail and 2nd will pass. Run this test case in your selenium IDE for better understanding. Both commands are just verification commands so it will not stop selenium ide execution even if any of them will fail.

No comments:

Post a Comment