I am new to selenium and having some difficulties. I am trying to verify a certain element in selected in a drop down. I have done some searching and tried a few different things but can not find what I am looking for.
Here is my code:
<select size="1" onfocus="setFocus(this.id);" onchange="Ice.selectChange(form,this,event,300);" onblur="setFocus('');" name="searchForm:j_id134" id="searchForm:j_id134" class="iceSelOneLb">
<option value="A_CLIENT_LAST_NAME" selected="selected">Last Name</option>
<option value="SOCIAL_SECURITY_NUMBER">Last 4 SSN</option>
This is what I have tried:
Weather I have Last Name or Last 4 SSN selected is passes. I am pretty sure I need to use the selected="selected" but I am not sure how. Any help would be appreciated.
Re: verifyElementPresent help
To verify a selected element in a drop down you need to use the command verifySelectedLabel or some other comand related to drop down (type verifySelected in the command line on selenium IDE and check all the options)
As example, to verify the value selected in the drop down in this page called "Rate this topic" you can try:
I hope it helps.