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

Cannot cast FrameworkElement to RadExpander

6 Answers 65 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joel
Top achievements
Rank 1
Joel asked on 24 Mar 2011, 02:54 PM
Hi,

I have code that successfully locates a RadExpander control on a Silverlight page using the FindName method of SilverlightApp class.  When I try to cast the resulting FrameworkElement to a RadExpander I get the following error:

  • The control type 'ArtOfTest.WebAii.Siliverlight.UI.ToggleButton' does not match the xaml tag 'radtogglebutton'

Here is some code that represents what I'm trying to do:

  • FrameworkElement element = app.FindName(controlName);
  • RadExpander expander = element.As<RadExpander>();

Any clues on why this is happening.  

Thanks.

Joel

6 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 24 Mar 2011, 03:09 PM
Hi Joel,

We are aware of such a problem and have a fix internally.

Our next official build of the framework and Test Studio will go public next week. In the meantime, do you need something RadExpander specific for your tests that you need to use or can you work with the FrameworkElement only? If the problem is a show stopper for you we can prepare a custom build but cannot guarantee it's stability until the build passes all our QA.

Looking forward to hearing from you,
Konstantin Petkov
the Telerik team
0
Joel
Top achievements
Rank 1
answered on 24 Mar 2011, 04:10 PM
Konstantin,

I can wait for the next official build.  Is there a way I can find out when it actually gets released?

Thanks.

Joel
0
Konstantin Petkov
Telerik team
answered on 24 Mar 2011, 04:51 PM
Hi Joel,

I don't think there is a way to subscribe to specific release news for the Testing Framework only. We have a Telerik email subscription but it includes all the products. I can ask for details if you are interested.

I will update this thread as soon as the next framework gets released.

Best wishes,
Konstantin Petkov
the Telerik team
0
Konstantin Petkov
Telerik team
answered on 06 Apr 2011, 12:33 PM
Hi Joel,

The new build is available for download:

Testing Framework Download

Please give it a go and let us know if you need further assistance.

Best wishes,
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
Shashi
Top achievements
Rank 1
answered on 16 Aug 2011, 04:31 PM
Hello,

Sorry to revive an old thread - but we just encountered the same error message while running one of our tests in WebUI Developer R2010.3.  Here is the extract from the log:

'8/15/2011 6:28:01 PM' - 'Fail' : 63. radexpander: 'Expand' action.

Failure Information:

 The control type 'ArtOfTest.WebAii.Silverlight.UI.ToggleButton' does not match the xaml tag 'radtogglebutton'


This test was working fine until our dev team upgraded the test application to the Q2 2011 version of the Telerik controls.

I was wondering if the fix referenced above has been integrated into WebUI Developer?  If so, which version?

Thanks,
Shashi
0
Cody
Telerik team
answered on 19 Aug 2011, 05:27 PM
Hello Shashi,

It appears we added support for the updated RadExpander in Test Studio 2011.1.609.

Greetings,
Cody
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
Tags
General Discussions
Asked by
Joel
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Joel
Top achievements
Rank 1
Shashi
Top achievements
Rank 1
Cody
Telerik team
Share this question
or