Unable to determine type of element

3 posts, 0 answers
  1. Mariko
    Mariko avatar
    39 posts
    Member since:
    Jun 2011

    Posted 26 Jan 2012 Link to this post

    Hi Telerik Team,

    I've encountered this error today.

    ArtOfTest.Common.Design.Exceptions.ExecutionException: Unable to determine the type of 'raddatepicker' element. Check the log for details. ---> System.ArgumentException: Unable to determine the type of 'raddatepicker' element. Check the log for details.
       at ArtOfTest.WebAii.Silverlight.FrameworkElement.CastAs[T]()
       at Telerik.WebAii.Design.Translators.Xaml.DatePicker.DatePickerStringPropertyVerification.GetValueByProperty(String name)
       at Telerik.WebAii.Design.Translators.Xaml.Common.RadControlPropertyVerificationDescriptor.ExtractData(IApplication hostApp, DescriptorValueStore dataStore)
       at ArtOfTest.WebAii.Design.Extensibility.XamlVerificationDescriptor.ExtractData(IAutomationHost targetHost, DescriptorValueStore dataStore)
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
       --- End of inner exception stack trace ---


    ArtOfTest.Common.Design.Exceptions.ExecutionException: Unable to determine the type of 'radrichtextbox' element. Check the log for details. ---> System.ArgumentException: Unable to determine the type of 'radrichtextbox' element. Check the log for details.
       at ArtOfTest.WebAii.Silverlight.FrameworkElement.CastAs[T]()
       at Telerik.WebAii.Design.Translators.Xaml.Documents.RichTextBoxSetTextAction.Execute(IApplication appHost)
       at ArtOfTest.WebAii.Design.Extensibility.XamlActionDescriptor.Execute(IAutomationHost autoHost)
       at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
       --- End of inner exception stack trace ---

    The test where this step belongs to is a Test as Step for my Main Test. So when I run my Sub Test it passes successfully but when its inside the Main Test it fails. It also happens to radrichtextbox. Also the Main Test passes successfully in the past.

    The raddatepicker is a Extract step and the radrichtextbox is Entering a value. Also when I validate the element it is located.

    Thanks
  2. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 26 Jan 2012 Link to this post

    Hello Mariko,

    I recreated your scenario and test/sub-test structure as best I could based on your description. I could not replicate the issue using this Telerik demo site.

    Can you provide the test files (within a .zip file) necessary to see the error (ideally against a public site)?

    Regards,
    Anthony
    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
  3. Mariko
    Mariko avatar
    39 posts
    Member since:
    Jun 2011

    Posted 26 Jan 2012 Link to this post

    Hi Anthony,

    The test is now working. I've recorded the failed test steps to the main test then executed it and passed. I've disabled the newly recorded steps then run again the whole main test and it passed successfully.

    Thanks
Back to Top