I'm trying to test Kendo Grid and retrieve the rows from the grid, the
grid.DataItems always returning 0.
I'm using the grid from your demo website. Below is my code.
[CodedStep(@"New Coded Step")]
public void WebTest_CodedStep1()
{
ActiveBrowser.NavigateTo("http://demos.kendoui.com/web/grid/index.html");
//Get the Calendar object
KendoGrid grid = ActiveBrowser.Find.ById<KendoGrid>("grid");
Log.WriteLine("Grid DataItems Count--- "+grid.DataItems.Count);
}
Can you please let me know whats wrong in my code. I'm using Test Studio.
Please find the Test Log Result below
Overall Result: Pass
------------------------------------------------------------
'1/8/2013 12:01:31 AM' - Using .Net Runtime version: '4.0.30319.296' for tests execution.
'1/8/2013 12:01:31 AM' - Starting execution....
'1/8/2013 12:01:36 AM' - Detected custom code in test. Locating test assembly: Learning_Test_Studio.dll.
'1/8/2013 12:01:36 AM' - Assembly Found: C:\Users\skandan\Documents\Test Studio Projects\Learning_Test_Studio\bin\Learning_Test_Studio.dll
'1/8/2013 12:01:36 AM' - Loading code class: 'Learning_Test_Studio.WebTest'.
------------------------------------------------------------
------------------------------------------------------------
'1/8/2013 12:01:36 AM' - Using 'InternetExplorer' version '8.0' as default browser.
- '1/8/2013 12:01:41 AM' - LOG: Grid DataItems Count--- 0
'1/8/2013 12:01:41 AM' - 'Pass' : 1. [WebTest_CodedStep] : Navigate to : 'http://demos.kendoui.com/web/grid/index.html'
------------------------------------------------------------
'1/8/2013 12:01:41 AM' - Overall Result: Pass
'1/8/2013 12:01:41 AM' - Duration: [0 min: 4 sec: 694 msec]
------------------------------------------------------------
'1/8/2013 12:01:42 AM' - Test completed!