This is a migrated thread and some comments may be shown as answers.

Unable to Find The Target Host ...

3 Answers 304 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Todd
Top achievements
Rank 1
Todd asked on 03 Nov 2010, 07:15 PM
It seems most people are getting this error in FF but I'm seeing it in IE.  I have a form with a <select ... field. The select uses a DHTML based lookup page to find values to populate the select's options - It can contain more than one value thus the select rather than an input field.  When I record the action everything looks fine.  Playing it back from a test list fails with the error shown below.  When I see the playback in the browser it appears that the click that fires the new window never happens.  There are some look ups of this type on a previous page - multi-page, multi-form process.  The previous lookups are for input fields and those work just fine in the playback.

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)

Any idea on how to sort this out?

UPDATE ...

Did a little more work with this and found something interesting.  The attached image shows the actual vs the expected.  I'm guessing what's happening is the lookup icon, an image of a maginfying glass, is named the same on both page one - expected - and page 3 - actual.  Since they're in different places on the page(s) and have a different url the application is failing to find it.  This is my assumption of course.  Is this the behavior of the application?  If so, how do I defeat this?  Is there something I'm not seeing?

Thanks,
Todd B.

3 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 08 Nov 2010, 06:52 PM
Hi Todd,

The error message "Unable to find the target host" means the framework was unable to locate the <frame> or <iframe> element it was looking for (your select must be contained inside this frame element). There are a few possible causes of this problem and we need to eliminate them one at a time:

  1. The script did not click the right button to open the correct popup window which contains the next element to act on. You can tell this is the problem because the wrong popup will open, or no popup will open when you expected one to open. If this is repeatable then it's a bug in our framework we need to find and fix. If you think this is the problem I'd like to see it in a GoToMeeting with you.
  2. The URL for the frame actually changed between recording and playback. If this is the problem you can fix it by re-recording the "Connect to popup" step or manually modifying the URL for Frame element in Elements Explorer.
  3. The URL for the frame contains some dynamic component, such as a session ID, a user id or something similar. This has to be fixed by setting UseQuery to false in the properties for the frame element.

If the above do not solve the problem I'd like to look at this problem with you via a GoToMeeting. Let me know what time zone you are in and your availability and I'll setup the meeting. I'm in Austin, TX which is Central Time (GMT -6).


Kind regards,
Cody
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
0
Vincent
Top achievements
Rank 1
answered on 16 Nov 2010, 03:20 PM
I had found the problem and fixed it. Please help to remove my attachment here. Thanks. :)
0
Cody
Telerik team
answered on 18 Nov 2010, 12:00 AM
Hello Vincent,

I am very pleased to hear you were able to fix the problem! I removed the attachment per your request.

All the best,
Cody
the Telerik team
See What’s New in WebUI Test Studio’s Q3 Release – Friday, November 19th, 2010 at 11am EST – Register Today!
Tags
General Discussions
Asked by
Todd
Top achievements
Rank 1
Answers by
Cody
Telerik team
Vincent
Top achievements
Rank 1
Share this question
or