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

Unable to find the target host to locate an element.

1 Answer 104 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gergana
Top achievements
Rank 1
Gergana asked on 23 Jul 2014, 03:18 PM
Hello,

One of my tests fails because Test Studio could not locate an element.
The following error is received:

Failure Information: ~~~~~~~~~~~~~~~Unable to find the target host
(Browser/SilverlightApp) to locate an element. Failure: Waiting for frame
'[Frame:id=Main,name=Main,src=~https://envision.digitalrealty.com/envision/Admin/DispWorld.asp,UseQuery:False]'
timed out. Error: Wait for condition has timed
outInnerException:System.Exception: Unable to find the target host
(Browser/SilverlightApp) to locate an element. Failure: Waiting for frame
'[Frame:id=Main,name=Main,src=~https://envision.digitalrealty.com/envision/Admin/DispWorld.asp,UseQuery:False]'
timed out. Error: Wait for condition has timed out   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost
host, AutomationDescriptor descriptor, Int32 timeout)   at
ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

 

As I can see frame ID and Name are not dynamic. I tried to change my configuration according to this article /http://docs.telerik.com/teststudio/user-guide/recording-tests/frames.aspx/ but the result is the same.

Could you please give some more information how to fix my issue?

Thank you in advance.

Best Regards,
Gergana

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 28 Jul 2014, 10:11 AM
Hello Gergana,

Thank you for contacting us.

Please double check also whether the source is the same.

Another option is to refresh the DOM tree before the step which locates the frame:

ActiveBrowser.RefreshDom();

Let me know if this helps.

Regards,
Boyan Boev
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Gergana
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Share this question
or