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.

Please do help:-iframe testing

AnushreeAnushree Members
edited November -1 in Sahi - Open Source
Hi Narayan

I have to test one site say example.com.This application has got different tabs.Suppose on clicking Tab 1 it opens a site abc.org on iframe and on clicking Tab2 will open another iframe xyz.edu.So i would like to know whether Sahi support this kind of testing .


Regards
Anushree

Comments

  • Hi Narayan

    Please do reply to this as soon as possible.


    Regards
    Anushree
  • Hi


    Can anybody give me solution for this problem?Its very urgent for me.Its related to the above specified post.

    I am not able to get into the iframe.Its not reading the value iam giving in the textbox.
    _click(_link("Userlogin"));
    _setValue(_textbox("username"), "Anu");
    _setValue(_password("password"), "anu123");
    _click(_submit("Submit"));

    Got error in log file:-
    The first parameter passed to _setValue was not found on the browser.




    Regards
    Anushree
  • narayannarayan Administrators
    Anushree,

    IFrames from different domains will only work on IE and Firefox.

    Did you record this script? It should have prefixed statements with _domain("abc.org")

    For example.

    _click(_link("Userlogin"));
    _domain("abc.org")._setValue(_textbox("username"), "Anu");
    _domain("abc.org")._setValue(_password("password"), "anu123");
    _domain("abc.org")._click(_submit("Submit"));

    Regards,
    Narayan
  • AnushreeAnushree Members
    edited March 2011
    Hi ,

    Thanks for the reply Narayan.First i have recorded the script and then followed the playback .Its again not working for me.
    Script:-
    _click(_link("Userlogin"));
    _domain("http://ip of my system/phptest/projec6login.php")._setValue(_textbox("username"), "Anu");
    _domain("http://ip of my system/phptest/projec6login.php")._setValue(_password("password"), "anu123");
    _domain("http://ip of my system/phptest/projec6login.php")._click(_submit("Submit"));

    Error on the controller:-
    _click(_link("Userlogin"));
    _click(_link("Userlogin"));
    Error in script: _domain("ip of my system/phptest/projec6login.php")._setValue(_textbox("username"), "Anu");
    Window/Domain not found: popupNameFromStep=; derivedName=; windowName=; windowTitle=; wasOpened=0; domain=
    --Stopped Playback: FAILURE--


    Regards
    Anushree
  • Hi


    I have tried with new Build 2011-03-14 also,but still iam facing same issue.At console iam getting error:-

    Rhino lib:Step >_sahi._click(_sahi._link("Userlogin"));< did not complete in 150 seconds.

    At controller i can see like this:-

    _click(_link("Userlogin"));
    --Stopped Playback: SUCCESS--

    Also i have tried script by giving wait statements.But iam not able to find the solution of this issue.
    I would like to know whether this will work for me or not.Please do check.

    Regards
    Anushree
  • Hi


    Please do reply me as soon as possible.


    Regards
    Anushree
  • Hi


    Can anybody help me for this problem?


    Regards
    Anushree
  • narayannarayan Administrators
    Hi Anushree,

    Are you able to run Sahi on a simple website?

    Could you please point us to some place where we can test the reported problem? Or else could you please email screen shots of the application when the error occurs, to support@sahi.co.in ?


    Regards,
    Narayan
Sign In or Register to comment.