Forum Discussion

tandrews's avatar
tandrews
Occasional Contributor
11 years ago

Wrong Button Clicked in Keyword Test

I have recorded a keyword test to click a confirm button on a form. However, when I run it, it clicks the deny button. The script behind the form is <div class="right" id="requestButtons">      ...
  • tristaanogre's avatar
    11 years ago
    Note that the mapping only has "ImageButton" object type as a mapping criteria.  If there is more than one object that will map that way, you may have issues like you've described.



    If I were you, I'd edit that mapping to add additional criteria... something like Caption, Id, or something else that would uniquely identify the button to keep it distinctive of other similar objects.