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

Table Grid row selection in Dev Studio

3 Answers 55 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
mike pal
Top achievements
Rank 1
mike pal asked on 11 May 2010, 12:12 AM
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?

3 Answers, 1 is accepted

Sort by
0
mike pal
Top achievements
Rank 1
answered on 11 May 2010, 12:21 AM
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();

0
Missing User
answered on 11 May 2010, 04:33 PM
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.
0
Missing User
answered on 18 May 2010, 04:29 PM
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.
Tags
General Discussions
Asked by
mike pal
Top achievements
Rank 1
Answers by
mike pal
Top achievements
Rank 1
Missing User
Share this question
or