Upgraded to latest - not seeing Grid as Grid

Thread is closed for posting
2 posts, 0 answers
  1. Joel
    Joel avatar
    2 posts
    Member since:
    Feb 2009

    Posted 13 Mar 2009 Link to this post

    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:

    <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"><title="Click here to sort" href="javascript:__doPostBack('ctl00$MainContent$grdCustomers$ctl00$ctl02$ctl01$ctl01','')">Last Name</A>&nbsp;<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"><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"><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"><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">&nbsp;</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">&nbsp;</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
  2. Konstantin
    Konstantin avatar
    1 posts
    Member since:
    Mar 2009

    Posted 13 Mar 2009 Link to this post

    Hi Joel,

    You seem to be using an older version of RadGrid. We have updated all the translators to work with the latest Q1 2009 RadControls for ASP.NET AJAX. You can find more info about the changes and improvements in the release notes.

    Unfortunately supporting the older versions of RadControls will be close to impossible. Instead, we will do our best to cover all the changes immediately so whenever the RadControls suite elements are changed (HTML rendering, CSS classes, whatever), the same version update of the WebUI Test Studio translators will reflect that. Thus the situation you fell into.

    Do you plan to upgrade your RadControls release? The improvements in the Q1 2009 release make the suite better than ever.

    Hope this addresses your inquiry. Let us know if we could be of further help.

    Best,
    Konstantin Petkov
    Telerik, WebUI Test Studio Team
Back to Top