Issue: Unable to locate target host

4 posts, 0 answers
  1. Narendra
    Narendra avatar
    1 posts
    Member since:
    Mar 2011

    Posted 28 Mar 2011 Link to this post

    Hello Telerik Team,

    I am facing problem with the recording. When i record any step on  base setup(Url) of our product it ran successfully but when i ran the same step(Script) on our client setup(Url) it fails and give error:"Unable to locate the target host. After  re-recording  the same step on client setup it creates the new frame for that step and ran successfully. Why this happens? I want to make my script generic so that it can be executed on client steup also.Please provide help. Also tell the reason why it create the New frame in Element Explorer, I am recording the Same step just changing the Navigation URL from base to client. 

    Failure Information:

    ~~~~~~~~~~~~~~~

    Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: System.TimeoutException: Wait for condition has timed out

       at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)

       at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout)

       at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Int32 timeout)

       at ArtOfTest.WebAii.Core.Browser.WaitForFrame(FrameInfo frameInfo, Int32 timeout)

       at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetFrameBrowserInstance(Browser topBrowser, FrameInfo frame, Int32 waitTimeout, String& stringError)

    InnerException:

    System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: System.TimeoutException: Wait for condition has timed out

       at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)

       at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout)

       at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Int32 timeout)

       at ArtOfTest.WebAii.Core.Browser.WaitForFrame(FrameInfo frameInfo, Int32 timeout)

       at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetFrameBrowserInstance(Browser topBrowser, FrameInfo frame, Int32 waitTimeout, String& stringError)

       at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(Browser browser, AutomationDescriptor descriptor)

       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep() .

  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 28 Mar 2011 Link to this post

    Hello Narendra,
        would it be possible for you to send me the actual test that causes the issue.

    Does your Test Project contain Frames? (screenshot 2). If so, you might be running into a known issue. Under current implementation Frames have their own URL (screenshot 1) which is not affected by the BaseURL feature. The Frame URL will remain constant until you change it manually. This is already filed as bug and will be resolved in the near future. Meanwhile you will have to change the URL for the Frame manually.

    Hope to hear from you soon.

    All the best,
    Stoich
    the Telerik team
  3. Rohit
    Rohit avatar
    8 posts
    Member since:
    Nov 2011

    Posted 17 Nov 2011 Link to this post

    Hello Telerik Team,

    We are also facing the same problem as our project is heavily using dynamic frames. We have even purchased the license for Test Studio Version 2011.1.712.0. Please let us know if this issue has been resolved else when can we expect a patch?


    Winshuttle Team

  4. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 17 Nov 2011 Link to this post

    Hi Rohit,

    Yes, this issue is resolved. In fact we just released a new service pack today that contains that fix, version 2011.2.1117.

    See here for information on HTML Frames and how Test Studio treats them. Also see our article on Using BaseURL and specifically how to configure Frames with BaseURL

    Kind regards,
    Anthony
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top