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.

iframe problem

pankaj.nithpankaj.nith Members
edited November -1 in Sahi - Open Source
Hi Narayan,

Here is the description of the iframe related issue:

There is an iframe that should appear within the blurred parent window. However the same when run through new version, the iframe covers the entire window with no blurred parent window visible. After that the same iframe/page keeps on reloading in endless loop.
We faced the same issue a month back (with old sahi version) but that was machine dependent. It occured only on a couple of machines.
<browser>
function getcount($list){
        return $list.options.length;
    }
</browser>
_click(_link("link to open iframe"));
var $len;
_set($len, getcount(_select("pageselect")));
for (var $i = 1; $i <= $len; $i++){
    if (_condition(_link("someName")!=null)){
        _click(_link("someName"));
        break;
    }
    else{    
        _setSelected(_select("pageselect"), $i + " of " + $len);
        _wait(5000);
    }
}
In the iframe there is a select box from where we can select among the different pages available. I have to iterate through each page to find a particular link and then click the link. earlier the same was working fine if the link was found in the initial pages (for smaller number of iterations) but as the number of iterations increased the waiting for socket problem started appearing.
Now in the new sahi version the iframe covers the entire window and the page keeps on reloading in an endless loop. So i am not able to check if the waiting for socket thing is resolved or not. Also similar issue(waiting for socket) appears on two particular pages in my application where the page keeps on loading but never loads completely. The command line window sometimes shows waiting for socket in this case and at times will show nothing. One special thing about these pages is that they include one or two instances of FCK Editor. This thing is making it impossible for us to run the scripts unattended or through suite.

Any beacon for us? :(

Thanks and Regards,
Pankaj.

Comments

  • Hi,

    Any progress on this? I tried recompiling an older version of sahi with increased socket pool. But not of much help. :(

    Regards,
    Pankaj.
  • Hi,

    I got the iframe issue resolved! Thanks to my dev mates. They are a great help :)
    But dont ask me how. Dont have much idea about it.. ;)
    Now I can proceed further to verify for the "waiting for socket" problem. That only after Diwali vaccation. :)

    Regards,
    Pankaj.
Sign In or Register to comment.