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.

Recognition of an element iframe

Fabrice BFabrice B Members
edited November -1 in Sahi - Open Source
Hi all,

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

  • Hi Fabrice B,

    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.
  • Hi 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
  • Hi Fabrice B,

    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.
  • Hi again,

    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
Sign In or Register to comment.