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.

Problem with iframe

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

I am using 2011-02-13 in Linux.I got an error in the controller after doing playback.I tried to login to our site through facebook.But its not working properly.

Error:-


_click(_link("signup"));
_click(_span("Login to our site with Facebook"));
Error in script: _popup("_e_gzI2")._setValue(_textbox("email"), "anushree@sparksupport.com");
Window/Domain not found: popupNameFromStep=_e_gzI2; derivedName=; windowName=; windowTitle=oursite.com; wasOpened=0; domain=
--Stopped Playback: FAILURE--
Please do help me.

Regards
Anushree

Comments

  • Hi narayan

    I have also done the following step:

    var d = window.document.domain;
    var ix = d.lastIndexOf(".");
    ix = d.lastIndexOf(".", ix-1);
    if (ix!=-1){
    document.domain = d.substring(ix+1); // uncommented
    }

    still iam getting the same error
  • Hi Narayan

    Please do reply as soon as possible.I need ur help

    Regards
    Anushree
  • narayannarayan Administrators
    If there is only one popup window, try

    _popup("/.*/")._setValue(_textbox("email"), "anushree@sparksupport.com");
  • Hi Narayan


    Please do check :-

    _popup("/.*/")._setValue(_textbox("email"), "anushree@sparksupport.com");

    I got this error after using above statement.While playback iam still getting error not able to connect to facebook.

    _assertExists(_link("signup"));
    _assert(_isVisible(_link("signup")));
    _assertEqual("signup", _getText(_link("signup")));
    _assertContainsText("signup", _link("signup"));
    _click(_link("signup"));
    _assertExists(_span("Login to oursite with Facebook"));
    _assert(_isVisible(_span("Login to oursite with Facebook")));
    _assertEqual("Login to oursite with Facebook", _getText(_span("Login to oursite with Facebook")));
    _assertContainsText("Login to oursite with Facebook", _span("Login to oursite with Facebook"));
    _click(_span("Login to oursite with Facebook"));
    uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: [url]http://75.101.140.187/owa/modules/base/js/owa.tracker-combined-min.js[/url] :: anonymous :: line 56" data: no] (:)
    _click(_span("Login to oursite with Facebook"));
    uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: [url]http://75.101.140.187/owa/modules/base/js/owa.tracker-combined-min.js[/url] :: anonymous :: line 56" data: no] (:)
    _popup("/.*/")._setValue(_text("email"), "anushree@sparksupport.com");
    uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: [url]http://75.101.140.187/owa/modules/base/js/owa.tracker-combined-min.js[/url] :: anonymous :: line 56" data: no] (:)
    --Stopped Playback: FAILURE--


    Regards
    Anushree
Sign In or Register to comment.