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

Unable to determine the type of 'maskedinputtextbox' element

1 Answer 19 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 27 Nov 2013, 07:38 AM
When I try to set text to field, Test Studio returns error: Unable to determine the type of 'maskedinputtextbox' element.
I'm using Infragistic XamDateTimeInput control on my silverlight app. This control contains masked input textbox and toogle button to expand calendar.
How can I resolve this problem?

'Fail' : 23. Set text contents of PARTInputTextBoxMaskedinputtextbox to '2013-12-03'
------------------------------------------------------------
Failure Information: 
~~~~~~~~~~~~~~~
Unable to determine the type of 'maskedinputtextbox' element. Check the log for details.
InnerException:
System.ArgumentException: Unable to determine the type of 'maskedinputtextbox' element. Check the log for details.
   w ArtOfTest.WebAii.Silverlight.FrameworkElement.CastAs[T]()
   w ArtOfTest.WebAii.Design.IntrinsicTranslators.Silverlight.Descriptors.TextBoxSetTextActionDescriptor.Execute(IApplication hostApp)
   w ArtOfTest.WebAii.Design.Extensibility.XamlActionDescriptor.Execute(IAutomationHost autoHost)
   w ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------

the log file in attachements

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 02 Dec 2013, 09:21 AM
Hi Stefan,

Thank you for contacting us.

Could you please try to refresh the DOM tree manually by adding a coded step with 'VisualTree.Refresh()' method. Insert the coded step before the failing step (i.e. before 23rd step).

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Stefan
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Share this question
or