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.

Window/domain not found, but it should find it

JaoBrJaoBr Members
edited November -1 in Sahi - Open Source
Hi,

I'm facing the following problem:
_log("Keyword id: "+14, "custom"); at 03/08/2012 14:16:04
_popup(/elis.*/)._sahi.setServerVar('\$botao', _image(0, _in(_div("ClassificacaoContaId"))).id);
Window/Domain not found: popupNameFromStep=/elis.*/; derivedName=; windowName=; windowTitle=; wasOpened=0; domain= at 03/08/2012 14:16:54
btn_165 at 03/08/2012 14:17:14
_log("btn_165"); at 03/08/2012 14:17:14
_popup(/elis.*/)._click(_image("btn_165"));
Window/Domain not found: popupNameFromStep=/elis.*/; derivedName=; windowName=; windowTitle=; wasOpened=0; domain= at 03/08/2012 14:18:04

Until now, every test I made was in a specific part of the system each one, of course I tested different features, but none of them redirects to another feature. But now, after I execute a few steps, the application redirects to another feature in order to continue the process.

If I can make this clearer, now I'll pay a bill and after its paid, the system will ask the user to update the inventory. Everytime the system redirects to update the inventory, Sahi just give me the "Window/domain" error.

I don't understand it because nothing is changed in the popup. I checked it on Sahi Controller, the popup name is the same as before, no new window is openned, its just like a forum login, I click on submit and it redirects me to the forum.

Also, as you can see, it takes a lot of time for Sahi to check this and continue to the other error.
On another feature, where I try to click on "Exit", I need to do this step two times to make it work.

I'm using Sahi 2011-07-19, Windows 7 and IE 9.

Thanks!

Comments

  • JaoBrJaoBr Members
    Still on the same problem:
    _popup(/elis.*/)._sahi.setServerVar('\$botao', _image(0, _in(_div("ClassificacaoContaId"))).id);
    Window/Domain not found: popupNameFromStep=/elis.*/; derivedName=; windowName=; windowTitle=; wasOpened=0; domain= at 06/08/2012 14:57:35
    btn_165 at 06/08/2012 14:57:57
    _log("btn_165"); at 06/08/2012 14:57:57
    _popup(/elis.*/)._click(_image("btn_165"));
    Window/Domain not found: popupNameFromStep=/elis.*/; derivedName=; windowName=; windowTitle=; wasOpened=0; domain= at 06/08/2012 14:58:47_popup(/elis.*/)._click(_link("Sem rateio")); at 06/08/2012 14:58:49
    

    This time, after the second error, Sahi does click on the link "Sem rateio", but after this it just stops doing the tests.
  • JaoBrJaoBr Members
    Hi,

    Can anyone help me?
  • JaoBrJaoBr Members
    Since I use regex for the popup name, I was using regex to do the tests, like this: "_popup(/elis.*/)."

    Now I just tried to use "_popup("/.*/").", but the same problem happens:
    Error in script: _popup("/.*/").setServerVar('\$botao', _image(0, _in(_div("ClassificacaoContaId"))).id);
    Window/Domain not found:  popupNameFromStep=/.*/; derivedName=; windowName=; windowTitle=; wasOpened=0; domain=
    
  • Hi,
    Can anyone help me?
  • Hi,
    Did you find a solution to this problem? i am facing a similar issue...
  • Hi,
    Please look at the following link and the explanation given by "Sumitra" in the end.
    http://sahi.co.in/forums/discussion/2435/how-to-capture-events-from-child-browser-window#Item_12
    

    Regards,
    Pratyush
  • Let me know if it still doesn't work for you.

    Regards.
Sign In or Register to comment.