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

KendoInput's InputValue gets incorrect values

2 Answers 21 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jared
Top achievements
Rank 1
Jared asked on 29 Sep 2015, 07:47 PM

I believe there is a bug with the InputValue property. I have two kendo numeric text boxes, each with different values. However, when attempting to get the values they always return the value of the first box. I know the right ones are being selected because I can add attributes and get the correct attributes back. Just the InputValues return incocrrectly

var elements = myManager.ActiveBrowser.Find.AllByXPath("//div[@id='glazeWindow']//*[contains(@class,'k-widget')]");
KendoInput txtOne = elements[0].As<KendoInput>();
var q = txtOne.Attributes;
KendoInput txtTwo = elements[3].As<KendoInput>();
var z = txtTwo.Attributes;
Debug.WriteLine(txtOne.InputValue);<br>Debug.WriteLine(txtTwo.InputValue);

<tbody class="ng-scope" ng-repeat="item in editBuildingFloorArea.placeSizes"><br><br><tr><br><br><td><br><br><span class="k-widget k-numerictextbox" style=""><br><br><span class="k-numeric-wrap k-state-default k-expand-padding"><br></span><br></td><br><br><td><br><br><td><br><br><td class="center"><br></tr><br></tbody><br><br><tbody class="ng-scope" ng-repeat="item in editBuildingFloorArea.placeSizes"><br><br><tr><br><br><td><br><br><span class="k-widget k-numerictextbox" style=""><br><br><span class="k-numeric-wrap k-state-default k-expand-padding"><br></span><br></td><br><br><td><br><br><td>

 

2 Answers, 1 is accepted

Sort by
0
Jared
Top achievements
Rank 1
answered on 02 Oct 2015, 01:32 PM
@Admin can anyone help out with this?
0
Boyan Boev
Telerik team
answered on 02 Oct 2015, 03:23 PM
Hello Jared,

Thank you for contacting us.

Unfortunately I am not able reproduce this behavior.

What version of Testing Framework do you use?

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Jared
Top achievements
Rank 1
Answers by
Jared
Top achievements
Rank 1
Boyan Boev
Telerik team
Share this question
or