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.

Domain not found - how to prevent the script from failure?

gligogligo Members
edited November -1 in Sahi - Open Source
Hello all,

I am having sometime this exception in the test:
Window/Domain not found: popupNameFromStep=; derivedName="name"; windowName="name"; windowTitle="title"; wasOpened=1; domain=

I cannot catch it with try catch, the script always fails...but I need the script to continue and try once again to open and work on this popup window...

Is it possible to do this?

Comments

  • Can you provide some code, why isn't the try catch working?
  • gligogligo Members
    edited May 2012
    Hello,
    sorry for the delay :-/

    this is a part of code:
    try {
    _popup("extVia_tree_hierarchymenu_edit")._click($tabTab);
    _popup("extVia_tree_hierarchymenu_edit")._click(_listItem($language));
    _popup("extVia_tree_hierarchymenu_edit")._wait(10000, $Success);
    } catch (e) {
    _log("Couldn't save successful");
    }

    The catch block is executed, but then the script fails, but I want it to try again the try code....
    I am always have the problem by IE and sometimes by FF...
  • vijayvijay Members
    A hi gligo Even am facing the same problem

    Can u PLease, Email Me the Solution
    vijaythecoco@gmail.com

    I ll B very Greate full..............
Sign In or Register to comment.