18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Click on abbr

zerenzeren Members
edited November -1 in Sahi - Open Source
Hi
I am trying to click on an abbr , sahi identifies this as _div("AAAA");

<div class="widthEnforcer" style="position: relative; width: 200px;">
<abbr title="my titile" style="position: relative; cursor: pointer;">AAAA</abbr>
<img class="animg" src="images/r/xx.png" title="View this">
</div>

how can I make it work?

thanks

Environment: Windows XP, IE8, Sahi build(2011-05-25)

Comments

  • narayannarayan Administrators
    Hi Zeren,

    In sahi/htdocs/spr/concat.js

    after the line with
    this.addAD({tag: "CANVAS", type: null, event:"click", name: "_canvas", attributes: ["sahiText", "id", "className", "index"], action: "_click", value: "sahiText"});

    add

    this.addAD({tag: "ABBR", type: null, event:"click", name: "_abbr", attributes: ["encaps_A", "sahiText", "id", "className", "index"], action: "_click", value: "sahiText"});


    and add

    _abbr

    to sahi/config/normal_functions.txt (in a line by itself)

    Restart Sahi, and Sahi will recognize the abbr tag.

    We seem to have missed this tag. This will be automatically available in the next version.

    Regards,
    Narayan
  • zerenzeren Members
    Wow Narayan..thanks a lot for quick reply. I will try this and let you know.
  • zerenzeren Members
    Awesome..It is working..Thanks to the sahi team!
This discussion has been closed.