This question is locked. New answers and comments are not allowed.
I upgraded to the "release" of Test Studio to try it out with our site. When in record or viewing dom and adding controls, it no longer finds the Grid elements (the header, the cells) as "grid elements", it seems to see the whole grid as something, but doesn't record it as such, instead records individual actions on standard elements. Here is a sample of the code in the website:
If I try to force either of the two 1st DIVS into a Grid object of something that might make sense, I get precopile errors or runtime errors, here is one example for the 2nd DIV(id=ctl00_MainContent_grdCustomers).
Cannot implicitly convert type 'ArtOfTest.WebAii.Controls.HtmlControls.HtmlDiv' to 'Telerik.Web.UI.Translators.RadGrid.RadGridHtmlControl' ...
Q1: Is this grid output from an old Telerik grid control that is not supported in the latests Test Studio?
Q2: If this grid is supported, how can I associate the control with a Grid object that I can then do Grid actions on. Just started on this, but hoping I can use the grid object to get "headers", Get count of Rows, select row[x] etc.
Thank you
<DIV style="DISPLAY: inline" id=ctl00_MainContent_ctl00_MainContent_grdCustomersPanel> |
<DIV style="HEIGHT: 390px" id=ctl00_MainContent_grdCustomers class="RadGrid RadGrid_CRM" tabIndex=0 EnableAJAX="true"> |
<DIV style="WIDTH: 100%; OVERFLOW: hidden" id=ctl00_MainContent_grdCustomers_GridHeader class=GridHeaderDiv_CRM> |
<TABLE style="TEXT-OVERFLOW: ellipsis; BORDER-COLLAPSE: collapse; EMPTY-CELLS: show; TABLE-LAYOUT: fixed; OVERFLOW: hidden" id=ctl00_MainContent_grdCustomers_ctl00_Header class=MasterTable_CRM border=0 cellSpacing=0> |
<COLGROUP> |
<COL> |
<COL> |
<COL> |
<COL> |
<COL> |
<COL></COLGROUP> |
<THEAD> |
<TR> |
<TH class=GridHeader_CRM scope=col UniqueName="lastName"><A title="Click here to sort" href="javascript:__doPostBack('ctl00$MainContent$grdCustomers$ctl00$ctl02$ctl01$ctl01','')">Last Name</A> <INPUT class=rgSortAsc title="Sorted asc" onclick="javascript:__doPostBack('ctl00$MainContent$grdCustomers$ctl00$ctl02$ctl01$ctl02','')" value=" " type=button name=ctl00$MainContent$grdCustomers$ctl00$ctl02$ctl01$ctl02></TH> |
<TH class=GridHeader_CRM scope=col UniqueName="firstName"><A title="Click here to sort" href="javascript:__doPostBack('ctl00$MainContent$grdCustomers$ctl00$ctl02$ctl01$ctl03','')">First Name</A></TH> |
<TH class=GridHeader_CRM scope=col UniqueName="primaryEmail"><A title="Click here to sort" href="javascript:__doPostBack('ctl00$MainContent$grdCustomers$ctl00$ctl02$ctl01$ctl04','')">Primary Email</A></TH> |
<TH class=GridHeader_CRM scope=col UniqueName="emailOptin">Email Opt-in</TH> |
<TH class=GridHeader_CRM scope=col UniqueName="primaryMobile">Primary Mobile</TH> |
<TH class=GridHeader_CRM scope=col UniqueName="sales"><A title="Click here to sort" href="javascript:__doPostBack('ctl00$MainContent$grdCustomers$ctl00$ctl02$ctl01$ctl05','')">Sales ($)</A></TH></TR></THEAD> |
<TBODY style="DISPLAY: none"> |
<TR> |
<TD colSpan=6></TD></TR></TBODY></TABLE></DIV> |
<DIV style="WIDTH: 100%; HEIGHT: 367px; OVERFLOW: auto" id=ctl00_MainContent_grdCustomers_GridData class=GridDataDiv_CRM> |
<TABLE style="MARGIN-TOP: 0px; TEXT-OVERFLOW: ellipsis; BORDER-COLLAPSE: collapse; EMPTY-CELLS: show; MARGIN-BOTTOM: 321px; TABLE-LAYOUT: fixed; OVERFLOW: hidden" id=ctl00_MainContent_grdCustomers_ctl00 class=MasterTable_CRM border=0 cellSpacing=0> |
<COLGROUP> |
<COL> |
<COL> |
<COL> |
<COL> |
<COL> |
<COL></COLGROUP> |
<TBODY> |
<TR id=ctl00_MainContent_grdCustomers_ctl00__0 class=GridRow_CRM> |
<TD style="WHITE-SPACE: nowrap">asdf</TD> |
<TD style="WHITE-SPACE: nowrap">asdf</TD> |
<TD style="WHITE-SPACE: nowrap">null</TD> |
<TD align=middle><SPAN disabled><INPUT id=ctl00_MainContent_grdCustomers_ctl00_ctl04_ctl00 disabled type=checkbox name=ctl00$MainContent$grdCustomers$ctl00$ctl04$ctl00></SPAN></TD> |
<TD style="WHITE-SPACE: nowrap"> </TD> |
<TD style="WHITE-SPACE: nowrap">0.00</TD></TR> |
<TR id=ctl00_MainContent_grdCustomers_ctl00__1 class=GridAltRow_CRM> |
<TD style="WHITE-SPACE: nowrap">LN_0_20090312034927</TD> |
<TD style="WHITE-SPACE: nowrap">FN_0_20090312034927</TD> |
<TD style="WHITE-SPACE: nowrap">BE@0.20090312034927</TD> |
<TD align=middle><SPAN disabled><INPUT id=ctl00_MainContent_grdCustomers_ctl00_ctl06_ctl00 disabled type=checkbox name=ctl00$MainContent$grdCustomers$ctl00$ctl06$ctl00></SPAN></TD> |
<TD style="WHITE-SPACE: nowrap"> </TD> |
<TD style="WHITE-SPACE: nowrap">0.00</TD></TR></TBODY></TABLE></DIV><INPUT id=ctl00_MainContent_grdCustomers_ClientState type=hidden name=ctl00_MainContent_grdCustomers_ClientState autocomplete="off"> |
</DIV> |
</DIV> |
If I try to force either of the two 1st DIVS into a Grid object of something that might make sense, I get precopile errors or runtime errors, here is one example for the 2nd DIV(id=ctl00_MainContent_grdCustomers).
Cannot implicitly convert type 'ArtOfTest.WebAii.Controls.HtmlControls.HtmlDiv' to 'Telerik.Web.UI.Translators.RadGrid.RadGridHtmlControl' ...
Q1: Is this grid output from an old Telerik grid control that is not supported in the latests Test Studio?
Q2: If this grid is supported, how can I associate the control with a Grid object that I can then do Grid actions on. Just started on this, but hoping I can use the grid object to get "headers", Get count of Rows, select row[x] etc.
Thank you