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

Unable to enter text into textbox of radgridview gridviewcell

7 Answers 100 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 23 Jan 2014, 01:44 AM
I can record the action of clicking a gridviewcell to activate it then entering text into the textbox, however when I attempt to playback the action I get the following failure:

Unable to determine the type of 'textbox' element. Check the log for details.
InnerException:
System.ArgumentException: Unable to determine the type of 'textbox' element. Check the log for details.
   at ArtOfTest.WebAii.Silverlight.FrameworkElement.CastAs[T]()
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Silverlight.Descriptors.TextBoxSetTextActionDescriptor.Execute(IApplication hostApp)
   at ArtOfTest.WebAii.Design.Extensibility.XamlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

How do I enter text into a gridviewcell?  I've tried adding a wait for textbox to exist, wait for the textbox to be visible, i've tried double clicking the gridviewcell, none of which have worked.

Update 1:When I click on the cell, sometimes "PartContentPresenterContentPresenter" is what is clicked, other times the "GridViewCellBorder" will be selected.  I'm not sure if there is a specific layer I need to select in order to allow the playback to find the textbox?

7 Answers, 1 is accepted

Sort by
0
Velin Koychev
Telerik team
answered on 27 Jan 2014, 02:50 PM
Hi Nick,
 
I am sorry to hear that  you are experiencing this issue.

One thing you can try is to disable the test step property  SimulateRealUser for this typing test step. 

Another thing you can try is to upgrade to our latest official release 2013.2.1327 that we release today. This is stability version (Service Pack) addressing a number of problems (including one similar to this issue).

I hope this helps. 

Regards,
Velin Koychev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Nick
Top achievements
Rank 1
answered on 27 Jan 2014, 03:30 PM
Thank you for the response, Velin.  Unfortunately, I'm still getting the same "Unable to determine the type of 'textbox' element." error when attempting to play back a recording using the latest release that you mentioned as well as with "SimulateRealUser" disabled.

Our primary developer wrote up a summary of the issue we are having, and we have a sample solution if that would help troubleshoot this issue further.  Summary:

The DynamicGrid sample project is bound dynamically, at runtime, using a Dictionary implementation similar to the one on found in
this Telerik blog post: http://blogs.telerik.com/vladimirenchev/posts/11-09-28/dynamic-binding-for-your-silverlight-applications.aspx

The RadGridView’s columns are created in the DynamicGrid.xaml.cs class and can either be overridden during auto-generation or added programmatically depending on whether the grid’s AutoGenerateColumns property is set to true or false respectively. In this particular example we create a TextBlockColumn for each column in the grid. This implementation of GridViewDataColumn either returns a TextBlock when the cell is not in edit mode or a TextBox when it is.

Regardless of the two methods we can use we still encounter the same issues when running Test Studio against the grid.
0
Velin Koychev
Telerik team
answered on 30 Jan 2014, 01:15 PM
Hello Nick,

I am sorry to hear that this issue still exists. 

Unfortunately I am still not able to reproduce this behavior with our latest official release 2013.2.1327. 

In order to help you best please provide us with a copy of your test and if it is possible grant us access to your application so we can reproduce the issue on our end and give you a solution. 

If direct access is not possible, capture a Fiddler trace and attach it to this support ticket in a zip file. If you are unfamiliar with how to do so, this link will provide you with step-by-step instructions for download and use. If taking a Fiddler trace please be sure to:
1. Click Clear Cache first
2. Check Store binaries
3. Check Decrypt HTTPS traffic

Hope to hear from you soon.

Regards,
Velin Koychev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Madhu
Top achievements
Rank 1
answered on 31 Jan 2014, 08:28 PM
Hi Velin,

I'm also interested for solution on this issue.

The quick way to reproduce the issue:

1. attach recorder to the testing site
2. put the recorder in pause mode
3. select option 'run from here', you will see above error at radgridview textbox step.

Thanks,
Madhu
0
Velin Koychev
Telerik team
answered on 05 Feb 2014, 03:51 PM
Hello Madhu,

This is actually an expected behavior when you try to run just the selected test steps for a Silverlight application and not as a part of the entire test.
You can workaround this problem if you add the following coded step to be executed before the typing test step:
SilverlightApp app = ActiveBrowser.SilverlightApps()[0];
app.RefreshVisualTrees();

I hope this helps.

Regards,
Velin Koychev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Madhu
Top achievements
Rank 1
answered on 10 Feb 2015, 03:40 PM
Hi Support,

What solution you have provided to 'Nick' for his issue? as I'm also in same situation.

Thanks,
Madhu. 
0
Ivaylo
Telerik team
answered on 13 Feb 2015, 06:50 AM
Hello Madhu,

I am reposting the answer you've been provided an year ago:

This is actually an expected behavior when you try to run just the selected test steps for a Silverlight application and not as a part of the entire test.
You can workaround this problem if you add the following coded step to be executed before the typing test step:


SilverlightApp app = ActiveBrowser.SilverlightApps()[0];
app.RefreshVisualTrees();

Please note this is quite old forum post, if you are experiencing any issues please submit your own ticket/forum post providing more detailed information so we can assist.

Thank you.

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