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.

Accessing Custom tag Text

ShivaleelaShivaleela Members
edited June 2013 in Sahi - Open Source
Hi All,

Im trying to access the text which has written in the custom tags.

Ex: <subject>Science</subject>

Im trying to access "Science" text and It doesn't has any id's.

I tried but i didn't get the solution for that.

Please help me.

Thanks and Regards,
Shivaleela.

Answers

  • Pratyush_TytoPratyush_Tyto Members
    edited July 2013
    Hi Shivaleela,
    this.addAD({tag: "SUBJECT", type: null, event:"", name: "_subject", attributes: ["sahiText", "id", "className", "index"], action: "", value: "sahiText"});
    

    Please add the line mentioned above in
    sahi/htdocs/spr/concat.js
    
    at the end of the prepareADs function.
    and also add _subject at the end of file in
    sahi/config/normal_functions.txt
    

    It will now get identified as:
    _subject("Science");
    

    Regards.
Sign In or Register to comment.