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.
get iframe using specific attribute
I want to use the below method.
API
_iframe(identifier)
HTML <iframe src="" name="name" id="id" ></iframe>
Identifier
name, id, index
Example _iframe("id");
But instead of name or id or index I want to use the combination of class and title attribute for getting the iframe since my code is as below.
<iframe class="rte" width="100%" height="95" frameborder="0" style="position: relative;" src="" sc_dojotype="scayt.ui" title="txtFeatureMarketingText">
How to do this ?
What should be changed in the concat.js or is there any other way to do it?
thanks and regards,
rahoolm
API
_iframe(identifier)
HTML <iframe src="" name="name" id="id" ></iframe>
Identifier
name, id, index
Example _iframe("id");
But instead of name or id or index I want to use the combination of class and title attribute for getting the iframe since my code is as below.
<iframe class="rte" width="100%" height="95" frameborder="0" style="position: relative;" src="" sc_dojotype="scayt.ui" title="txtFeatureMarketingText">
How to do this ?
What should be changed in the concat.js or is there any other way to do it?
thanks and regards,
rahoolm

Comments
In one line to get attribute "title"
_getAttribute(_byClassName("rte", "iframe", _div("rightSlideIn")), "title")
or
you can use
var $obj = _byClassName("rte", "iframe", _div("rightSlideIn"))
_getAttribute($obj, "title")
txtFeatureMarketingText
_getAttribute($obj, "src")
My next target is to get the contents of element and then modify it.
Here is the complete code. I am not interested in the complete content modification but only the part.
Under this body one can add html tags like
Can anybody please help me?
regards,
rahoolm
regards,
rahoolm