which command is used to check if a button is enabled or disabled using selenium IDE. -
you can not click button unless edit @ least 1 field, , button disabled. once edit field button 'reset' enabled click.
you can solve in number of ways.
probably 1 of more useful ways (if using fact more once), save "status" of button variable.
below 2 separate examples of how code this.
the first example take variable called isselected, , assign either value of "block" or "none" dependent on how selector displaying.
the second example @ radio button , see whether present in "on" state or not.
this first 1 uses jquery addon
<tr> <td>storeeval</td> <td>jquery('div.search-date-container div.modal').css('display')</td> <td>isselected</td> </tr> <tr> <td>gotoif</td> <td>storedvars['isselected']=='block'</td> <td>skiptodatepicker</td> </tr>
this second 1 doesn't
<tr> <td>storeelementpresent</td> <td>id=edw_paynow</td> <td>edwpresent</td> </tr> <tr> <td>echo</td> <td>${edwpresent}</td> <td></td> </tr> <tr> <td>gotoif</td> <td>${edwpresent}==false</td> <td>skipedw</td> </tr>
you may need adapt code - don't know buttons using. if provide bit more info , upvote i'm sure try figure out :)
Comments
Post a Comment