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.

sometimes domain not found issue

JequilJequil Members
edited November -1 in Sahi - Open Source
Hi team,
Below is a log for my test case, I don't know why there is a domain not found issue, this issue appears not frequently, only quite a few cases meet this issue when I run a whole test suite, could you show what does the issue is? Thank you.

_popup("Covisint Connection and Administration")._setValue(_textarea("challengeQuestion"), "testquestion"); at 2011-12-12 19:31:05
_popup("Covisint Connection and Administration")._setValue(_textarea("challengeAnswer"), "testanswer"); at 2011-12-12 19:31:05
_popup("Covisint Connection and Administration")._click(_button("continue registration"));
_popup("Covisint Connection and Administration")._click(_button("yes, i accept agreement"));
Window/Domain not found: popupNameFromStep=Covisint Connection and Administration; derivedName=; windowName=; windowTitle=; wasOpened=0; domain=ad.yieldmanager.com
at RegisterUser (scripts/Config/projectFunctions.sah:303) at 2011-12-12 19:31:14

Comments

  • Hi Jequil,

    Can you please Ctrl+Hover on any element on the popup and check what the popup is identified by the controller?

    Use the controllers identifier for the popup and check if it works for you.

    Regards
    Sumitra
  • Yes, I use the controller to record the popup again, I'm sure the popup is identified as _popup("Covisint Connection and Administration"), also, this case don't fail every time, only few times it failed, below is yahoo mail log in and click "Inbox", also failed with similar issues, not sure what's the reason since many other cases passed with this step.

    _click(_submit("Sign In")); at 2011-12-13 18:17:26
    _click(_italic("Inbox"));
    Window/Domain not found: popupNameFromStep=; derivedName=; windowName=om_default_view_id_68ohh6com6c1h-compose; windowTitle=; wasOpened=0; domain=68ohh6com6c1h-c.c.yom.mail.yahoo.com at 2011-12-13 18:17:46
  • Hi Jequil,
    In the below code:
    _popup("Covisint Connection and Administration")._setValue(_textarea("challengeQuestion"), "testquestion"); at 2011-12-12 19:31:05
    _popup("Covisint Connection and Administration")._setValue(_textarea("challengeAnswer"), "testanswer"); at 2011-12-12 19:31:05
    _popup("Covisint Connection and Administration")._click(_button("continue registration")); 
    _popup("Covisint Connection and Administration")._click(_button("yes, i accept agreement"));
    

    It seems that the title is changing after you click on continue registration link.So kindly use the title name after you click on "continue registration" link.

    It is the same reason that in yahoo mail log in and click "inbox", once you click on inbox then the title will be changed which would fail your script.

    Check if this solves your issue.

    Regards
    sumitra
  • narayannarayan Administrators
    Hi Jequil,

    The fact that the test works mostly and fails a few times means that it is not a problem of changing window names. If that was the case it should consistently fail.

    Do your popups only fail when run via a suite?
    Do you have two test cases which both open popup windows, running at the same time (because of parallel execution)? If two browsers try to open popup windows with the same name, it is possible both popups are opened in the same window. In this case one of the test cases will fail. One solution is to make these testcases farther from each other in the suite so that they do not run in parallel. Another option is to have a separate suite with these problem test scripts but run them in a single thread.

    Not sure if this is the reason for your failures, but may be worth analysing.

    Regards,
    Narayan
  • yogiraneyogirane Members
    edited July 2012
    Hi Jequil

    I am facing same problem

    _click(_link("307/1[1]"));
    Window/Domain not found: popupNameFromStep=; derivedName=; windowName=; windowTitle=; wasOpened=1; domain= at 18 Jul, 2012 3:48:29 PM

    can u suggest what will be solution?
Sign In or Register to comment.