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

[Solved] Error in playback using RadWindow

4 Answers 50 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
bo
Top achievements
Rank 1
bo asked on 12 Feb 2010, 02:42 PM
I have a simple webtest that
  • navigates to my site
  • logs in
  • enters 'asdf' in a textbox
  • saves it
  • opens RadWindow
  • enters '123456' in a textbox - This Step fails in playback (Set 'EditOccIdTextText' text to '123456')
  • saves it

The problem is apparently finding the textbox in the radwindow.  Is there a way around this?

I don't understand the significance of the SilverlightApp in the error message since it is not a silverlight app that I am testing. 
Error Message:
ArtOfTest.Common.Design.Exceptions.ExecutionException: Unhandled exception thrown during automation step execution ---> System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure:
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
   --- End of inner exception stack trace ---

4 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 12 Feb 2010, 03:45 PM
Hi bo,

I'm afraid this is a know problem concerning the IFrames support. The RadWindow content is presented by an IFrame having dynamically generated source. This doesn't allow us to locate the IFrame on execution and we throw that error.

We will do our best to fix that in the next version. Meanwhile you can work-around the problem my updating the IFrame source manually. A click on the type text step from your test should show you the input element in the Elements Explorer. Find the parent frame of that element and right-click on it, then choose to load its properties. In the properties window you can expand the main node and locate the source property/value. There:
- change the Frame source by removing the part from the query string
- Add '~' at the front.

This will allow the WebAii execution to locate the frame again and your test to type into the input.

Kind regards,
Konstantin Petkov
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
bo
Top achievements
Rank 1
answered on 12 Feb 2010, 08:02 PM
I did that but received the same error.

I changed the FrameInfo:Src
  • from EditOccur.aspx?record_id=&ClientObjID=20100211033929556104user1&submode=undefined&auth=undefined
  • to ~EditOccur.aspx?record_id=&ClientObjID=20100212022437377545user1


0
Konstantin Petkov
Telerik team
answered on 12 Feb 2010, 08:06 PM
Hello bo,

It looks like that ClientObjID value differs as well. Can you try stripping that part too please? Leaving the first part only (~EditOccur.aspx) should do the trick.

I'm sorry for the inconvenience once again.

Regards,
Konstantin Petkov
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
Konstantin Petkov
Telerik team
answered on 26 Feb 2010, 08:07 AM
Hello bo,

This is just to update you about this problem.

The latest release of WebUI Test Studio from February 24th (labeled 2009.3.1424) resolves the problem with the Html RadWindow recording. For all the updates in this product version, please review the changes listed here.

All the best,
Konstantin Petkov
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.
Tags
General Discussions
Asked by
bo
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
bo
Top achievements
Rank 1
Share this question
or