Hi,
I'm getting error saying "Invalid input type 'Text' for this control. Control was expecting 'Number' ", when i convert the recorded step to code and pass value from the data table(excel).
Steps
1) Record the step and playback (works fine)
2) Record the step and convert the step to code (worksfine)
3) Record the step and Data bind to external excel (worksfine)
4) Convert the step to code which is data bound (error is thrown)
I have attached the screen shots of
1) Control properties
2) Code
Error message:
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[Lodge_Monthly_Status_for_MINING_1_CodedStep] : Enter text '566' in 'AvgNumEmployeesText''.
InnerException:
System.ArgumentException: Invalid input type 'Text' for this control. Control was expecting 'Number'
at ArtOfTest.WebAii.Controls.Control.CreateInstance[TControl](Element e, Boolean throwIfNull)
at ArtOfTest.WebAii.ObjectModel.Element.As[TControl]()
at ArtOfTest.WebAii.TestTemplates.HtmlElementContainer.Get[TControl](HtmlFindExpression expr)
at ArtOfTest.WebAii.TestTemplates.HtmlElementContainer.Get[TControl](String[] clauses)
at Pages.SafetyRegulationSystem5Page.get_AvgNumEmployeesText() in C:\Telrik\MSNew\Monthly Status (External)\Pages.g.vb:line 914
at Monthly_Status__External_.Lodge_Monthly_Status_for_MINING__1_.Lodge_Monthly_Status_for_MINING_1_CodedStep() in C:\Telrik\MSNew\Monthly Status (External)\Mining\Lodge Monthly Status for MINING (1).tstest.vb:line 293
Please let me know how to resolve this issue.
Thanks
Raj
I'm getting error saying "Invalid input type 'Text' for this control. Control was expecting 'Number' ", when i convert the recorded step to code and pass value from the data table(excel).
Steps
1) Record the step and playback (works fine)
2) Record the step and convert the step to code (worksfine)
3) Record the step and Data bind to external excel (worksfine)
4) Convert the step to code which is data bound (error is thrown)
I have attached the screen shots of
1) Control properties
2) Code
Error message:
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[Lodge_Monthly_Status_for_MINING_1_CodedStep] : Enter text '566' in 'AvgNumEmployeesText''.
InnerException:
System.ArgumentException: Invalid input type 'Text' for this control. Control was expecting 'Number'
at ArtOfTest.WebAii.Controls.Control.CreateInstance[TControl](Element e, Boolean throwIfNull)
at ArtOfTest.WebAii.ObjectModel.Element.As[TControl]()
at ArtOfTest.WebAii.TestTemplates.HtmlElementContainer.Get[TControl](HtmlFindExpression expr)
at ArtOfTest.WebAii.TestTemplates.HtmlElementContainer.Get[TControl](String[] clauses)
at Pages.SafetyRegulationSystem5Page.get_AvgNumEmployeesText() in C:\Telrik\MSNew\Monthly Status (External)\Pages.g.vb:line 914
at Monthly_Status__External_.Lodge_Monthly_Status_for_MINING__1_.Lodge_Monthly_Status_for_MINING_1_CodedStep() in C:\Telrik\MSNew\Monthly Status (External)\Mining\Lodge Monthly Status for MINING (1).tstest.vb:line 293
Please let me know how to resolve this issue.
Thanks
Raj