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.
Recognition of an element iframe
Hi all,
i've a page with a text zone on my browser, and sahi does not recognise this element. the innerHtml gives me
How can i recognise, assert and write in this zone ?
Thank you
Fabrice
i've a page with a text zone on my browser, and sahi does not recognise this element. the innerHtml gives me
<td height="100%">
<iframe class="gwt-RichTextArea hasRichTextToolbar" tabindex="0">
</iframe>
How can i recognise, assert and write in this zone ?
Thank you
Fabrice
Comments
Is there is any domain associated with the IFrames?If so,open sahi/userdata/config/domainfix.txt and add it to domainfix.txt.For more details go through,
http://sahi.co.in/w/trouble-shooting-sahi
Regards
Theeran.
I ve found this page with this setting "document.domain", but when i made a view source there is no string "document.domain" in my page ???
I made a test with sahi controller, and when i give "document.domain" in Accessor on a page of my site, it gives me the name of my machine.
I tried to add *.MyMachineName and *.MyMachineName MyMachineName in domainfix.txt, but it still does not work.
An idea ?
Thank you
Fabrice
Try the following script to identify the domain of iframe,
window.frames[0].document.domain;
use the above script to get domain of iframes,add it to the domainfix.txt.
Regards
Theeran.
I try, i try but it is always the same result : MachineName
It's not so grave, thank you for the time you spent
Regards
Fabrice