Cannot cast FrameworkElement to RadExpander

7 posts, 0 answers
  1. Joel
    Joel avatar
    11 posts
    Member since:
    Dec 2010

    Posted 24 Mar 2011 Link to this post

    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
  2. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 24 Mar 2011 Link to this post

    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
  3. Joel
    Joel avatar
    11 posts
    Member since:
    Dec 2010

    Posted 24 Mar 2011 Link to this post

    Konstantin,

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

    Thanks.

    Joel
  4. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 24 Mar 2011 Link to this post

    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
  5. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 06 Apr 2011 Link to this post

    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
  6. Shashi
    Shashi avatar
    25 posts
    Member since:
    Feb 2011

    Posted 16 Aug 2011 Link to this post

    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
  7. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 19 Aug 2011 Link to this post

    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!
Back to Top