Hi Telerik team,
I am trying to verify the contents of a RadGridView control. The rows from the grid are results of the Find function.
For example I tried to search for 'firstname' the grid will give me:
I used the "hover over highlighting = enabled" to get the RadGridview control properties and perform verification.
I explored the "Quick Tasks" for getting the verification but I didn't find any.
I also explored the "Build Verification" and also no luck.
So I tried adding a custom step but when I write this code,
I am encountering
I am trying to verify the contents of a RadGridView control. The rows from the grid are results of the Find function.
For example I tried to search for 'firstname' the grid will give me:
First Name | Last Name | Middle Name |
firstname1 | lastname1 | m |
firstname2 | lastname2 | m |
I used the "hover over highlighting = enabled" to get the RadGridview control properties and perform verification.
I explored the "Quick Tasks" for getting the verification but I didn't find any.
I also explored the "Build Verification" and also no luck.
So I tried adding a custom step but when I write this code,
Assert.IsFalse((ArtOfTest.Common.CompareUtils.StringCompare(Pages.CreateNewMeeting.SilverlightApp.FindResultsGridViewRadgridview.Rows.ToString(), "firstname", ArtOfTest.Common.StringCompareType.Contains) == false));
System.NullReferenceException: Object reference not set to an instance of an object. at Telerik.WebAii.Controls.Xaml.RadGridView.get_GroupRows() at Telerik.WebAii.Controls.Xaml.RadGridView.get_Rows() at ...
In Coded UI, we are using this approach where we highlight the whole table and get the "InnerText" property.
It will give us this result:
"First NameLast NameMiddle Namefirstname1lastname1mfirstname2lastname2m"
So, for verification, we simply put something like this:
Assert.IsTrue(Pages.CreateNewMeeting.SilverlightApp.FindResultsGridViewRadgridview.Rows.Contains("firstname"));
Any thoughts on this?
Thanks,
Mariko