18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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.
How to retrive value from some tags
_spandiv("search").innerHTML
returns this - <P class=popUpTitle>SEARCH</P>
How can i retrive the title of this search pop-up from this.
returns this - <P class=popUpTitle>SEARCH</P>
How can i retrive the title of this search pop-up from this.
Comments
i can retrive from _getText,but how can i get the value from this tag because it is useful for me in other places.
i tried with _byClassName(className, tagName),but this didnt work for the value in tags.
1) Do you want to get the text "SEARCH" from that span which I think is ? Or do you mean something else when you say "title of this search pop-up"?
2) When you say "i can retrive from _getText,but how can i get the value from this tag because it is useful for me in other places.", do you mean you want to store it in a variable for reuse? If yes, use _set. (Saying you can "retrieve" it but cannot "get" it is confusing)
3) What values did you use in _byClassName(className, tagName)? What error did you get?
Regards,
Narayan