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

"Unable to find the target host (Browser/SilverlightApp) to locate an element" error while the test is run in FF 3.6

6 Answers 180 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Svetlana
Top achievements
Rank 1
Svetlana asked on 03 Jun 2010, 02:47 PM
Hello,

When I try to run my test in FF I get the following error:

ArtOfTest.Common.Design.Exceptions.ExecutionException: 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) ---> 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()
   --- End of inner exception stack trace ---

Failed step:
Verify attribute 'src' has 'NotContain' value of 'disabled' on 'CPRibbonGroup3BtnRibbReadCardImageImage'

Although in IE8 all works fine.

Could you, please, clarify what is wrong?
Thanks.

6 Answers, 1 is accepted

Sort by
0
Missing User
answered on 03 Jun 2010, 09:11 PM
Hi Svetlana,

Thanks for the post and I'm sorry you ran into this problem. So could you confirm if the failure is occurring over a page element in an IFrame or in a browser popup window?

Also, it looks like this is happening against an html page, but please correct me if it is happening on a Silverlight control. If it is html, if  you could also please send the html code sample to us to check out and test on this end.

Best wishes,
Nelson Sin
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
Svetlana
Top achievements
Rank 1
answered on 04 Jun 2010, 09:23 AM
Hello Nelson,

You are right, this error occurs against an html page.

<div id="ctl00_CP_RibbonGroup3_btnRibbReadCard_Start" class="largeRibbonButtonStart">
</div>
<div id="ctl00_CP_RibbonGroup3_btnRibbReadCard_Item" class="largeRibbonButtonItem"
    style="width: 41px;">
    <div class="largeRibbonButtonImage">
        <img src="/Images/Icons/card_reader_32.png" id="ctl00_CP_RibbonGroup3_btnRibbReadCard_Image"></div>
    <div id="ctl00_CP_RibbonGroup3_btnRibbReadCard_Text" class="largeRibbonButtonText">
        Read card</div>
</div>
<div id="ctl00_CP_RibbonGroup3_btnRibbReadCard_End" class="largeRibbonButtonEnd">
</div>
                   
0
Accepted
Missing User
answered on 04 Jun 2010, 05:11 PM
Hi again Svetlana,

Thanks for sending the code, I was able to reproduce this with the code and in an IFrame in Firefox 3.6.3. Please try deleting the BaseURL for the frame in WebUI and try running the test again (see the attached screenshot for reference). 

Kind regards,
Nelson
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
Missing User
answered on 07 Jun 2010, 10:54 PM
Hi again Svetlana,

Just wanted to check back to see if you were able to get this working in Firefox.

Kind regards,
Nelson
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
Svetlana
Top achievements
Rank 1
answered on 08 Jun 2010, 09:07 AM
Hi Nelson,

Thank you, now it works in FF too :)

Regards,
Svetlana
0
Ken
Top achievements
Rank 1
answered on 11 Dec 2013, 09:59 PM
Actually I just came across this post. I am encountering the exact same thing when trying to record and play back a script using either Chrome or FF.

As reported previously, the script plays back in IE just fine but not in Chrome (nor in FF).

I tried this same thing, deleting the base url and it resolved my problem too.

The issue looks to be the same in that I was trying to access screen elements within a dynamic control using frames.

Regards,

Ken
Tags
General Discussions
Asked by
Svetlana
Top achievements
Rank 1
Answers by
Missing User
Svetlana
Top achievements
Rank 1
Ken
Top achievements
Rank 1
Share this question
or