Hello,
I am trying to following the tutorial in the documentation: http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/html/dynamic-grid.aspx
1. I first navigate to the site http://demos.telerik.com/aspnet-ajax/grid/examples/client/selecting/defaultcs.aspx
2. Then I add GridTableView to project element
3. I added a code step with the code:
Then when I run the test, I get an error in the log saying: "......DynamicGridTest.tstest.cs: Line 78: (CS1579) foreach statement cannot operate on variables of type 'Telerik.WebAii.Controls.Html.GridTableView' because 'Telerik.WebAii.Controls.Html.GridTableView' does not contain a public definition for 'GetEnumerator'"
How do I solve this problem?
Thanks
-------------------------------------
never mind, solved.
I am trying to following the tutorial in the documentation: http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/html/dynamic-grid.aspx
1. I first navigate to the site http://demos.telerik.com/aspnet-ajax/grid/examples/client/selecting/defaultcs.aspx
2. Then I add GridTableView to project element
3. I added a code step with the code:
foreach
(HtmlTableRow r
in
Pages.ClientSideRowSelection.TemporaryRadGridTable1)
{
foreach
(HtmlTableCell c
in
r.Cells)
{
Log.WriteLine(
"Cell found. TextContent:"
+c.TextContent);
}
}
Then when I run the test, I get an error in the log saying: "......DynamicGridTest.tstest.cs: Line 78: (CS1579) foreach statement cannot operate on variables of type 'Telerik.WebAii.Controls.Html.GridTableView' because 'Telerik.WebAii.Controls.Html.GridTableView' does not contain a public definition for 'GetEnumerator'"
How do I solve this problem?
Thanks
-------------------------------------
never mind, solved.