Table Grid row selection in Dev Studio

4 posts, 0 answers
  1. mike pal
    mike pal avatar
    2 posts
    Member since:
    Apr 2010

    Posted 10 May 2010 Link to this post

    I was implementing a test for ASP page using the WebAii Dev Studio. Test has two dialogs, one main window and popup windows. Popup windows has a table grid with user names, actual behaviors of the application is when tester click on the specific row of the grid and click on the submit button, pop window closes and main window updates based on the user selection from the pop window. i was able to record the test correctly but when it ran, the row selection in the popup windows won't select and main window doesn't update.
    How do i select the table grid row?
  2. mike pal
    mike pal avatar
    2 posts
    Member since:
    Apr 2010

    Posted 10 May 2010 Link to this post

    the sample code i am using to select the row is,
    var grid = Find.ById<HtmlTable>("UltraWebGridPatients_mc");
    var row = grid.Find.ById<HtmlTableRow>("UltraWebGridPatients_r_0");
    row.Click();

  3. Missing user
    Missing user avatar

    Posted 11 May 2010 Link to this post

    Hi mike,

    Thanks for the question. Just to confirm, is the popup in question a full sized browser or a RadWindow? And if it's a browser window, is it modal or does it have the complete browser toolbar?

    Also, based on the code you posted, the grid in question is html, right? And it seems as though the test is running to a certain point, so is the test failing with any particular error message?

    But from your description, the scenario may just need a couple things. For the actual row selection, please try having the click test step simulate a real click with the SimulateRealClick property set to true.

    The code would look similar:

    row.ScrollToVisible(ArtOfTest.WebAii.Core.ScrollToVisibleType.ElementTopAtWindowTop);
    row.MouseClick();

    For the submit button click step, please have the ClosesBrowser property set to True. If that does not work, please try switching the SimulateRealClick property set to true also for the step.

    All the best,
    Nelson sin
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  4. Missing user
    Missing user avatar

    Posted 18 May 2010 Link to this post

    Hello again mike,

    Just wanted to check back to see if this issue is occurring or is  you were able to resolve this. If not, please reply back with any information you can from my previous post. 

    All the best,
    Nelson
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top