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

Unable to determine type of element

2 Answers 116 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mariko
Top achievements
Rank 1
Mariko asked on 26 Jan 2012, 11:32 AM
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 Answers, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 26 Jan 2012, 10:35 PM
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
0
Mariko
Top achievements
Rank 1
answered on 27 Jan 2012, 03:05 AM
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
Tags
General Discussions
Asked by
Mariko
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Mariko
Top achievements
Rank 1
Share this question
or