Unable to enter text into textbox of radgridview gridviewcell

8 posts, 0 answers
  1. Nick
    Nick avatar
    23 posts
    Member since:
    Nov 2013

    Posted 22 Jan 2014 Link to this post

    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?
  2. Velin Koychev
    Admin
    Velin Koychev avatar
    88 posts

    Posted 27 Jan 2014 Link to this post

    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!
  3. Nick
    Nick avatar
    23 posts
    Member since:
    Nov 2013

    Posted 27 Jan 2014 in reply to Velin Koychev Link to this post

    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.
  4. Velin Koychev
    Admin
    Velin Koychev avatar
    88 posts

    Posted 30 Jan 2014 Link to this post

    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!
  5. Madhu
    Madhu avatar
    23 posts
    Member since:
    Dec 2010

    Posted 31 Jan 2014 in reply to Velin Koychev Link to this post

    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
  6. Velin Koychev
    Admin
    Velin Koychev avatar
    88 posts

    Posted 05 Feb 2014 Link to this post

    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!
  7. Madhu
    Madhu avatar
    23 posts
    Member since:
    Dec 2010

    Posted 10 Feb 2015 Link to this post

    Hi Support,

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

    Thanks,
    Madhu. 
  8. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 13 Feb 2015 Link to this post

    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!
Back to Top