Issues with CUITe, new to this.... please help.

Jul 20, 2012 at 2:21 PM

I am new to CUITe, our application developed in ASP.Net with frames and  infragistic controls, and having couple of issues

  1. Not able to handle Alerts.

Below one is working , but not sure if this is the perminant solution or not…..

SCSCheck VINCheck = CUITe_BrowserDialog.GetBrowserWindow<SCSCheck>();

if (VINCheck.Exists)

if (VINCheck.Enabled == true)

Keyboard.SendKeys("{ENTER}");

 

  1. Not able to Handle Popup Messages

Found the below code from one of the discussion, but not sure how to use . I tried to read the popup from F12 , but nothing recognizes from there….

           UITestControl popup = new UITestControl();

           popup.TechnologyName = "MSAA";

           popup.SearchProperties.Add("ClassName", "#32770", "Name", "Message from webpage");

           UITestControl btnOK = new UITestControl(popup);

           btnOK.TechnologyName = "MSAA";

           btnOK.SearchProperties.Add("ControlType", "Button", "Name", "OK");

           Mouse.Click(btnOK);

 

  1. Not able to send text to Phone no fields which like this in UI - (___) ___-____ Ext.____

Try to send the text in 1234567890 , (123) 456-7890 , (123) 456-7890 Ext.____, nothing worked out.

  1. How to store the values in excel,

If it is success / failure I need to send those results to excel.

 

Please help me here.

.

Coordinator
Jul 21, 2012 at 2:34 AM

Hi, chandravaleti.

 

> Not able to handle Alerts.

Can you provide a sample html page and code that can reproduce your issue please?

How is SCSCheck defined?

Does the html page send an alert message when it is finished loading?

Please explain what happens (ex. indicate the error message) and also explain what you expected to happen.

 

> Not able to Handle Popup Messages

Can you provide a sample html page and code that can reproduce your issue please?

The code you provided is out of context and relies on the behavior of the html page under test to work.

It seems that code is from http://cuite.codeplex.com/discussions/353864/ which also indicates the specific coded ui test that should pass.

If that ui test is failing on your machine, please indicate what happens (ex. what is the error message) and also explain what you expected to happen instead.

 

> Not able to send text to Phone no fields which like this in UI - (___) ___-____ Ext.____

Can you provide a simple html page and code that can reproduce your issue please?

What does the html for the control look like?

How are you trying to set the text for the control?

With the code samples, please also indicate what happens, including the exact error message and also explain what you expected to happen instead.


> How to store the values in excel

This discussion forum should be used to discuss the Coded UI Test enhanced framework only.

Your question is not related to CUITe and may be better asked in one of Microsoft's forums.

I also did a simple web search and found these similar questions:

http://social.msdn.microsoft.com/forums/en-US/vststest/thread/10e70068-6508-48d3-88ed-32956d410207/

http://stackoverflow.com/questions/5409184/microsoft-test-result-in-excel-format

Both of which reference http://trx2html.codeplex.com which can be used to convert the trx test output file to an html file.

But again, this feature request has nothing to do with CUITe directly, so you will get better assistance by directing your questions to the appropriate forums.

 

Thank you.

Jul 23, 2012 at 2:19 PM
Edited Jul 23, 2012 at 2:26 PM

Thank you for your response. Please see the html code for

2.Phone no.

   </tr>
    <tr>
        <td align="right">
            &nbsp;<span id="ucCustomer_ucAddress_lblZipPostalCode" class="Label">ZIP/Postal Code</span></td>
        <td align="left">
            <input name="ucCustomer$ucAddress$txtZipCode" type="text" maxlength="10" id="ucCustomer_ucAddress_txtZipCode" class="TextBox" onchange="FormatZipPostalCodes(this);" onkeypress="SetModifiedStatusOn();" style="width:65px;text-transform:uppercase;" />
            
        </td>
    </tr>
</table>
 
        </td>
        <td style="width: 30%">
            <table border="0" cellpadding="2" cellspacing="0" width="100%">
                <colgroup>
                    <col width="110" />
                    <col />
                </colgroup>
                <tr>
                    <td>
                        <span id="ucCustomer_lblPrimaryPhone" class="Label">Primary Phone</span>
                    </td>
                    <td>
                        <input type="hidden" name="ucCustomer$txtPrimaryPhone" id="ucCustomer_txtPrimaryPhone" value="" /><input type="hidden" name="ucCustomer_txtPrimaryPhone_p" id="ucCustomer_txtPrimaryPhone_p" value=" " /><input type="text" style="width:146px;" class="TextBox" id="igtxtucCustomer_txtPrimaryPhone" readonly="true" />
                       
 
                    </td>
                </tr>
                <tr>
                    <td>
                        <span id="ucCustomer_lblSecondaryPhone" class="Label">Secondary Phone</span>
                    </td>
                    <td>
                        <input type="hidden" name="ucCustomer$txtSecondaryPhone" id="ucCustomer_txtSecondaryPhone" value="" /><input type="hidden" name="ucCustomer_txtSecondaryPhone_p" id="ucCustomer_txtSecondaryPhone_p" value=" " /><input type="text" style="width:146px;" class="TextBox" id="igtxtucCustomer_txtSecondaryPhone" readonly="true" />
                       
                       
                    </td>
                </tr>
                <tr>
                    </td>
                </tr>
                <tr>
                    <td>
                        <span id="ucCustomer_lblAlternateContact" class="Label">Alternate Contact</span>
ct" class="TextBox" onkeypress="SetModifiedStatusOn();" style="width:146px;text-transform:uppercase;" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <span id="ucCustomer_lblAllowExemption" class="Label">Tax exempt Customer</span>
                    </td>
                    <td>
                        <span class="Label"><input id="ucCustomer_chkAllowExemption" type="checkbox" name="ucCustomer$chkAllowExemption" onclick="chkAllowExemption_OnChange();" /></span>
                    </td>                   
                </tr>
            </table>
        </td>
    </tr>
</table>

I will check the message popup code and let you know.

Thanks,

Chandra

Jul 23, 2012 at 2:27 PM

sorry, not able to send everything at once, CODE FOR VIN ALERT

 

<BODY language=javascript onunload="return window_onunload()" onload="return window_onload()" scroll=no onbeforeunload="return window_onbeforeunload()">
<FORM id=frm method=post name=frm action=ModalWindowHost.aspx?URL=..%2fVinNumberVerList.aspx%3fsvin%3d15GGB301*c*******&amp;title=VIN+Number+Check&amp;unfocus=true target="VIN Number Check">
<DIV><INPUT id=__VIEWSTATE value=/wEPDwUJNTM4NDg3MjA1D2QWAgIDD2QWAgIBDxYCHgNTUkMFVC4uL1Zpbk51bWJlclZlckxpc3QuYXNweD9zdmluPTE1R0dCMzAxKmMqKioqKioqJnRlbXBsYXRlX19kaXNwbGF5PWZhbHNlJnVuZm9jdXM9dHJ1ZWRkQ/9pbrgdgfrkTQvDbjDtVxCML+s= type=hidden name=__VIEWSTATE> </DIV>
<SCRIPT type=text/javascript>
//<![CDATA[

                var myTimeReminder, now, timeCur;                   
                clearTimeout(myTimeReminder); var sessionTimeReminder = 21540000;
function doReminder(){
var isModal = window.location.pathname.indexOf('/ModalWindowHost.aspx') > 0 ? true : false;
now = new Date();
var expireTime = new Date();
expireTime.setMinutes(expireTime.getMinutes()+1);
var expTime = "'"+expireTime+"'";
var message = 'You are about to be signed out from SCS. Click OK before {0} to stay signed in.';
alert(message.replace('{0}',expTime.substring(1,expTime.length - 9)));
var timeCur = new Date();if((timeCur.getTime() - now.getTime()) < 60000 ){
var strhttp = 'https://qa.fiadmin.com/scs.web.ahs.8.4.3';
strhttp += "/HTTPRequest/Lookup.aspx?req=STO";
strhttp += '&sconn_prefix=AHS';
var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
xmlhttp.Open("GET", strhttp, false);
xmlhttp.Send(null);
myTimeReminder = setTimeout('doReminder()', 21540000);
}else{blnWarningOff = true;if(isModal){doRedirectModal(window);}else{doRedirect();}}}
function doRedirect(){ window.location.href='UserLogin.aspx?err=SessionExpired'; }
function doRedirectModal(wind){blnWarningOff = true;
var parentWind;if(wind.dialogArguments != null && wind.dialogArguments != undefined)
{parentWind = wind.dialogArguments.Opener;if(wind.event){
wind.event.cancelBubble=true;wind.event.returnValue=false;}wind.close();if(parentWind){
doRedirectModal(parentWind);}else{if(wind.location){
wind.location.href='UserLogin.aspx?err=SessionExpired';}else{wind.close();}}}
else{if(wind.location){if(wind.event){wind.event.cancelBubble=true;wind.event.returnValue=false;}
wind.location.href='UserLogin.aspx?err=SessionExpired';}else{wind.close();}}}
myTimeReminder=setTimeout('doReminder()', sessionTimeReminder); //]]>
</SCRIPT>
<IFRAME id=ifrMain height="100%" src="../VinNumberVerList.aspx?svin=15GGB301*c*******&amp;template__display=false&amp;unfocus=true" frameBorder=0 width="100%"></IFRAME></FORM></BODY></HTML> 

Coordinator
Jul 25, 2012 at 2:43 AM

Hi chandravaleti,

The sample code you provided is too complex and incomplete.

Please simplify your code so that the issue can be isolated as much as possible.

The code you provide should run without any external dependencies.

In regards to alerts on a web page, this works without issues:

alert_onload.htm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
    <head>
        <title>alert_onload</title>
    </head>
    <body onload="onload();">
        <script type=text/javascript>
            //<![CDATA[
            function onload() {
                alert("onload");
            }
            //]]>
        </script>
    </body>
</html>

Tests.cs

[TestMethod]
[DeploymentItem("alert_onload.htm")]
public void AlertPopup_OnLoad_CanClickOK()
{
    CUITe_BrowserWindow bWin = CUITe_BrowserWindow.Launch(CurrentDirectory + "/alert_onload.htm", "alert_onload");

    UITestControl popup = new UITestControl(bWin);
    popup.TechnologyName = "MSAA";
    popup.SearchProperties.Add("ClassName", "#32770", "Name", "Message from webpage");
    
    UITestControl btnOK = new UITestControl(popup);
    btnOK.TechnologyName = "MSAA";
    btnOK.SearchProperties.Add("ControlType", "Button", "Name", "OK");
    Mouse.Click(btnOK);

    bWin.Close();
}

In regards to the text input controls you provided, they are read-only so setting the text or sending keys to the control will appear to not do anything.

Aug 6, 2012 at 1:59 PM

Thank you.Sorry for the delay.

 

I tried this code, but It didn't work for my application. Anyhow I handled those through Code UIMaps.

Now I have another problem with Webtable. I have provide the correct Table Id to get cell value, but it's recognizing as cell header. 

error - 

Unable to cast object of type 'Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlHeaderCell' to type 'Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlCell'.

I am not able attach the screenshot for the same. 

Here is the HTML code 

 

<div id='ulbPlanxctl00xucTermxgrdTerm_hdiv' onscroll="igtbl_onStationaryMarginScroll(event, 'ulbPlanxctl00xucTermxgrdTerm', 'ulbPlanxctl00xucTermxgrdTerm_hdiv')" style='overflow:hidden;width:100%;position:relative;'> <table border='0' cellpadding='0' cellspacing='0' style='position:relative;table-layout:fixed;height:100%;width: 635px;'  bandNo='0'> <colgroup> <col width='22px' /> <col width='25px' /> <col width='40px' /> <col width='80px' /> <col width='100px' /> <col width='250px' /> <col width='140px' /> <col width='1' style='display:none;' /> <col width='1' style='display:none;' /> <col width='1' style='display:none;' /> <col width='1' style='display:none;' /> <col width='1' style='display:none;' /> <col width='1' style='display:none;' /> <col width='1' style='display:none;' /> </colgroup> <thead class="ig_aaea5c39_r1 RD ig_aaea5c39_r4 CH" onmousedown='igtbl_headerClickDown(event,"ulbPlanxctl00xucTermxgrdTerm");' onmouseup='igtbl_headerClickUp(event,"ulbPlanxctl00xucTermxgrdTerm");' onmouseout='igtbl_headerMouseOut(event,"ulbPlanxctl00xucTermxgrdTerm");' onmousemove='igtbl_headerMouseMove(event,"ulbPlanxctl00xucTermxgrdTerm");' onmouseover='igtbl_headerMouseOver(event,"ulbPlanxctl00xucTermxgrdTerm");' oncontextmenu='igtbl_headerContextMenu(event,"ulbPlanxctl00xucTermxgrdTerm");' ondblclick='igtbl_cellDblClick(event,"ulbPlanxctl00xucTermxgrdTerm");'><tr> <th width='22px' height='18px'><img src='Infragistics/Images/ig_tblBlank.gif' border='0' imgType='blank' style='visibility:hidden;' /></th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_0' columnNo='0' height='18px' class="ig_aaea5c39_r4 CH ">&nbsp;</th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_1' columnNo='1' height='18px' class="ig_aaea5c39_r4 CH "><nobr>Term</nobr></th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_2' columnNo='2' height='18px' class="ig_aaea5c39_r4 CH "><nobr>Odom</nobr></th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_3' columnNo='3' height='18px' class="ig_aaea5c39_r4 CH "><nobr>Odom Elig</nobr></th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_4' columnNo='4' height='18px' class="ig_aaea5c39_r4 CH "><nobr>Extended Eligibility</nobr></th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_5' columnNo='5' height='18px' class="ig_aaea5c39_r4 CH "><nobr>Payment Group</nobr></th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_6' columnNo='6' height='18px' class="ig_aaea5c39_r4 CH " style="display:none;">&nbsp;</th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_7' columnNo='7' height='18px' class="ig_aaea5c39_r4 CH " style="display:none;">&nbsp;</th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_8' columnNo='8' height='18px' class="ig_aaea5c39_r4 CH " style="display:none;">&nbsp;</th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_9' columnNo='9' height='18px' class="ig_aaea5c39_r4 CH " style="display:none;">&nbsp;</th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_10' columnNo='10' height='18px' class="ig_aaea5c39_r4 CH " style="display:none;">&nbsp;</th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_11' columnNo='11' height='18px' class="ig_aaea5c39_r4 CH " style="display:none;">&nbsp;</th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_12' columnNo='12' height='18px' class="ig_aaea5c39_r4 CH " style="display:none;">&nbsp;</th> </tr></thead> </table> </div></td></tr> <tr id="ulbPlanxctl00xucTermxgrdTerm_mr" style="height:100%;"><td id="ulbPlanxctl00xucTermxgrdTerm_mc" align='left' style="height:100%;vertical-align:top;"><div id="ulbPlanxctl00xucTermxgrdTerm_div" style="position:relative;overflow:hidden;overflow-y:scroll;width:100%;height:100%;" onscroll='igtbl_onScroll(event,"ulbPlanxctl00xucTermxgrdTerm");' tabIndexPage='13' hideFocus='true'> <table id='G_ulbPlanxctl00xucTermxgrdTerm' bandNo='0'  border='0' cellpadding='0' cellspacing='0' style='table-layout:fixed;width:635px;position:relative;' onSelectStart='igtbl_selectStart(event,"ulbPlanxctl00xucTermxgrdTerm");' onmousedown='igtbl_cellClickDown(event,"ulbPlanxctl00xucTermxgrdTerm");' onmouseup='igtbl_cellClickUp(event,"ulbPlanxctl00xucTermxgrdTerm");' oncontextmenu='igtbl_cellContextMenu(event,"ulbPlanxctl00xucTermxgrdTerm");' onmousemove='igtbl_cellMouseMove(event,"ulbPlanxctl00xucTermxgrdTerm");' onmouseover='igtbl_cellMouseOver(event,"ulbPlanxctl00xucTermxgrdTerm");' onmouseout='igtbl_cellMouseOut(event,"ulbPlanxctl00xucTermxgrdTerm");' ondblclick='igtbl_cellDblClick(event,"ulbPlanxctl00xucTermxgrdTerm");'> <colgroup> <col width='22px' /> <col width='25px' /> <col width='40px' /> <col width='80px' /> <col width='100px' /> <col width='250px' /> <col width='140px' /> <col width='1px' style='display:none;' /> <col width='1px' style='display:none;' /> <col width='1px' style='display:none;' /> <col width='1px' style='display:none;' /> <col width='1px' style='display:none;' /> <col width='1px' style='display:none;' /> <col width='1px' style='display:none;' /> </colgroup> <thead class="ig_aaea5c39_r1 RD ig_aaea5c39_r4 CH" style='display:none;' onmousedown='igtbl_headerClickDown(event,"ulbPlanxctl00xucTermxgrdTerm");' onmouseup='igtbl_headerClickUp(event,"ulbPlanxctl00xucTermxgrdTerm");' onmouseout='igtbl_headerMouseOut(event,"ulbPlanxctl00xucTermxgrdTerm");' onmousemove='igtbl_headerMouseMove(event,"ulbPlanxctl00xucTermxgrdTerm");' onmouseover='igtbl_headerMouseOver(event,"ulbPlanxctl00xucTermxgrdTerm");' oncontextmenu='igtbl_headerContextMenu(event,"ulbPlanxctl00xucTermxgrdTerm");'><tr> <th height='18px'><img src='Infragistics/Images/ig_tblBlank.gif' border='0' imgType='blank' style='visibility:hidden;' /></th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_0' columnNo='0' height='18px' class="ig_aaea5c39_r4 CH ">&nbsp;</th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_1' columnNo='1' height='18px' class="ig_aaea5c39_r4 CH ">&nbsp;</th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_2' columnNo='2' height='18px' class="ig_aaea5c39_r4 CH ">&nbsp;</th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_3' columnNo='3' height='18px' class="ig_aaea5c39_r4 CH ">&nbsp;</th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_4' columnNo='4' height='18px' class="ig_aaea5c39_r4 CH ">&nbsp;</th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_5' columnNo='5' height='18px' class="ig_aaea5c39_r4 CH ">&nbsp;</th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_6' columnNo='6' height='18px' class="ig_aaea5c39_r4 CH " style="display:none;">&nbsp;</th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_7' columnNo='7' height='18px' class="ig_aaea5c39_r4 CH " style="display:none;">&nbsp;</th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_8' columnNo='8' height='18px' class="ig_aaea5c39_r4 CH " style="display:none;">&nbsp;</th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_9' columnNo='9' height='18px' class="ig_aaea5c39_r4 CH " style="display:none;">&nbsp;</th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_10' columnNo='10' height='18px' class="ig_aaea5c39_r4 CH " style="display:none;">&nbsp;</th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_11' columnNo='11' height='18px' class="ig_aaea5c39_r4 CH " style="display:none;">&nbsp;</th> <th id='ulbPlanxctl00xucTermxgrdTerm_c_0_12' columnNo='12' height='18px' class="ig_aaea5c39_r4 CH " style="display:none;">&nbsp;</th> </tr></thead> <tbody style="height:100%" class="ig_aaea5c39_r1 RD ig_aaea5c39_r4 CH"> <tr id='ulbPlanxctl00xucTermxgrdTerm_r_0' style='height:18px;'> <th id='ulbPlanxctl00xucTermxgrdTerm_l_0'style="width:22px;  height:18px;"><img src='Infragistics/Images/ig_tblBlank.gif' border='0' imgType='blank' style='visibility:hidden;' /> </th><td iDV="False" class="GridUnlockedCell" allowedit="yes"><nobr><input type='checkbox' onpropertychange='igtbl_chkBoxChange(event,"ulbPlanxctl00xucTermxgrdTerm");' tabindex='-1' /></nobr></td><td iDV="1" class="GridLockedCell" allowedit="no"><nobr>1</nobr></td><td iDV="999999" class="GridLockedCell" allowedit="no"><nobr>999999</nobr></td><td class="GridUnlockedCell" allowedit="yes"><nobr>&nbsp;</nobr></td><td class="GridUnlockedCell" allowedit="yes"><nobr>&nbsp;</nobr></td><td class="GridUnlockedCell" allowedit="yes"><nobr>&nbsp;</nobr></td><td iDV="0" style="display:none;"><nobr>0</nobr></td><td iDV="" class="ig_aaea5c39_1" style="display:none;"><nobr>&nbsp;</nobr></td><td iDV="0" class="ig_aaea5c39_2" style="display:none;"><nobr>0</nobr></td><td iDV="144" class="ig_aaea5c39_3" style="display:none;"><nobr>144</nobr></td><td iDV="" class="ig_aaea5c39_4" style="display:none;"><nobr>&nbsp;</nobr></td><td iDV="" class="ig_aaea5c39_5" style="display:none;"><nobr>&nbsp;</nobr></td><td iDV="0" class="ig_aaea5c39_6" style="display:none;"><nobr>0</nobr></td> </tr> <tr id='ulbPlanxctl00xucTermxgrdTerm_r_1' class="RDA" style='height:18px;' alt='true'> <th id='ulbPlanxctl00xucTermxgrdTerm_l_1'style="width:22px;  height:18px;"><img src='Infragistics/Images/ig_tblBlank.gif' border='0' imgType='blank' style='visibility:hidden;' /> </th><td iDV="False" class="GridUnlockedCell" allowedit="yes"><nobr><input type='checkbox' onpropertychange='igtbl_chkBoxChange(event,"ulbPlanxctl00xucTermxgrdTerm");' tabindex='-1' /></nobr></td><td iDV="2" class="GridLockedCell" allowedit="no"><nobr>2</nobr></td><td iDV="999999" class="GridLockedCell" allowedit="no"><nobr>999999</nobr></td><td class="GridUnlockedCell" allowedit="yes"><nobr>&nbsp;</nobr></td><td class="GridUnlockedCell" allowedit="yes"><nobr>&nbsp;</nobr></td><td class="GridUnlockedCell" allowedit="yes"><nobr>&nbsp;</nobr></td><td iDV="0" style="display:none;"><nobr>0</nobr></td><td iDV="" class="ig_aaea5c39_1" style="display:none;"><nobr>&nbsp;</nobr></td><td iDV="0" class="ig_aaea5c39_2" style="display:none;"><nobr>0</nobr></td><td iDV="145" class="ig_aaea5c39_3" style="display:none;"><nobr>145</nobr></td><td iDV="" class="ig_aaea5c39_4" style="display:none;"><nobr>&nbsp;</nobr></td><td iDV="" class="ig_aaea5c39_5" style="display:none;"><nobr>&nbsp;</nobr></td><td iDV="0" class="ig_aaea5c39_6" style="display:none;"><nobr>0</nobr></td> </tr> <tr id='ulbPlanxctl00xucTermxgrdTerm_r_2' style='height:18px;'> <th id='ulbPlanxctl00xucTermxgrdTerm_l_2'style="width:22px;  height:18px;"><img src='Infragistics/Images/ig_tblBlank.gif' border='0' imgType='blank' style='visibility:hidden;' /> </th><td iDV="False" class="GridUnlockedCell" allowedit="yes"><nobr><input type='checkbox' onpropertychange='igtbl_chkBoxChange(event,"ulbPlanxctl00xucTermxgrdTerm");' tabindex='-1' /></nobr></td><td iDV="3" class="GridLockedCell" allowedit="no"><nobr>3</nobr></td><td iDV="3000" class="GridLockedCell" allowedit="no"><nobr>3000</nobr></td><td class="GridUnlockedCell" allowedit="yes"><nobr>&nbsp;</nobr></td><td class="GridUnlockedCell" allowedit="yes"><nobr>&nbsp;</nobr></td><td class="GridUnlockedCell" allowedit="yes"><nobr>&nbsp;</nobr></td><td iDV="0" style="display:none;"><nobr>0</nobr></td><td iDV="" class="ig_aaea5c39_1" style="display:none;"><nobr>&nbsp;</nobr></td><td iDV="0" class="ig_aaea5c39_2" style="display:none;"><nobr>0</nobr></td><td iDV="138" class="ig_aaea5c39_3" style="display:none;"><nobr>138</nobr></td><td iDV="" class="ig_aaea5c39_4" style="display:none;"><nobr>&nbsp;</nobr></td><td iDV="" class="ig_aaea5c39_5" style="display:none;"><nobr>&nbsp;</nobr></td><td iDV="0" class="ig_aaea5c39_6" style="display:none;"><nobr>0</nobr></td> </tr> <tr id='ulbPlanxctl00xucTermxgrdTerm_r_3' class="RDA" style='height:18px;' alt='true'> <th id='ulbPlanxctl00xucTermxgrdTerm_l_3'style="width:22px;  height:18px;"><img src='Infragistics/Images/ig_tblBlank.gif' border='0' imgType='blank' style='visibility:hidden;' /> </th><td iDV="False" class="GridUnlockedCell" allowedit="yes"><nobr><input type='checkbox' onpropertychange='igtbl_chkBoxChange(event,"ulbPlanxctl00xucTermxgrdTerm");' tabindex='-1' /></nobr></td><td iDV="3" class="GridLockedCell" allowedit="no"><nobr>3</nobr></td><td iDV="999999" class="GridLockedCell" allowedit="no"><nobr>999999</nobr></td><td class="GridUnlockedCell" allowedit="yes"><nobr>&nbsp;</nobr></td><td class="GridUnlockedCell" allowedit="yes"><nobr>&nbsp;</nobr></td><td class="GridUnlockedCell" allowedit="yes"><nobr>&nbsp;</nobr></td><td iDV="0" style="display:none;"><nobr>0</nobr></td><td iDV="" class="ig_aaea5c39_1" style="display:none;"><nobr>&nbsp;</nobr></td><td iDV="0" class="ig_aaea5c39_2" style="display:none;"><nobr>0</nobr></td><td iDV="146" class="ig_aaea5c39_3" style="display:none;"><nobr>146</nobr></td><td iDV="" class="ig_aaea5c39_4" style="display:none;"><nobr>&nbsp;</nobr></td><td iDV="" class="ig_aaea5c39_5" style="display:none;"><nobr>&nbsp;</nobr></td><td iDV="0" class="ig_aaea5c39_6" style="display:none;"><nobr>0</nobr></td> </tr> <tr id='ulbPlanxctl00xucTermxgrdTerm_r_4' style='height:18px;'> <th id='ulbPlanxctl00xucTermxgrdTerm_l_4'style="width:22px;  height:18px;"><img src='Infragistics/Images/ig_tblBlank.gif' border='0' imgType='blank' style='visibility:hidden;' /> </th><td iDV="False" class="GridUnlockedCell" allowedit="yes"><nobr><input type='checkbox' onpropertychange='igtbl_chkBoxChange(event,"ulbPlanxctl00xucTermxgrdTerm");' tabindex='-1' /></nobr></td><td iDV="4" class="GridLockedCell" allowedit="no"><nobr>4</nobr></td><td iDV="999999" class="GridLockedCell" allowedit="no"><nobr>999999</nobr></td><td class="GridUnlockedCell" allowedit="yes"><nobr>&nbsp;</nobr></td><td class="GridUnlockedCell" allowedit="yes"><nobr>&nbsp;</nobr></td><td class="GridUnlockedCell" allowedit="yes"><nobr>&nbsp;</nobr></td><td iDV="0" style="display:none;"><nobr>0</nobr></td><td iDV="" class="ig_aaea5c39_1" style="display:none;"><nobr>&nbsp;</nobr></td><td iDV="0" class="ig_aaea5c39_2" style="display:none;"><nobr>0</nobr></td><td iDV="147" class="ig_aaea5c39_3" style="display:none;"><nobr>147</nobr></td><td iDV="" class="ig_aaea5c39_4" style="display:none;"><nobr>&nbsp;</nobr></td><td iDV="" class="ig_aaea5c39_5" style="display:none;"><nobr>&nbsp;</nobr></td><td iDV="0" class="ig_aaea5c39_6" style="display:none;"><nobr>0</nobr></td> </tr> <tr id='ulbPlanxctl00xucTermxgrdTerm_r_5' class="RDA" style='height:18px;' alt='true'> <th id='ulbPlanxctl00xucTermxgrdTerm_l_5'style="width:22px;  height:18px;"><img src='Infragistics/Images/ig_tblBlank.gif' border='0' imgType='blank' style='visibility:hidden;' /> </th><td iDV="False" class="GridUnlockedCell" allowedit="yes"><nobr><input type='checkbox' onpropertychange='igtbl_chkBoxChange(event,"ulbPlanxctl00xucTermxgrdTerm");' tabindex='-1' /></nobr></td><td iDV="5" class="GridLockedCell" allowedit="no"><nobr>5</nobr></td><td iDV="999999" class="GridLockedCell" allowedit="no"><nobr>999999</nobr></td><td class="GridUnlockedCell" allowedit="yes"><nobr>&nbsp;</nobr></td><td class="GridUnlockedCell" allowedit="yes"><nobr>&nbsp;</nobr></td><td class="GridUnlockedCell" allowedit="yes"><nobr>&nbsp;</nobr></td><td iDV="0" style="display:none;"><nobr>0</nobr></td><td iDV="" class="ig_aaea5c39_1" style="display:none;"><nobr>&nbsp;</nobr></td><td iDV="0" class="ig_aaea5c39_2" style="display:none;"><nobr>0</nobr></td><td iDV="148" class="ig_aaea5c39_3" style="display:none;"><nobr>148</nobr></td><td iDV="" class="ig_aaea5c39_4" style="display:none;"><nobr>&nbsp;</nobr></td><td iDV="" class="ig_aaea5c39_5" style="display:none;"><nobr>&nbsp;</nobr></td><td iDV="0" class="ig_aaea5c39_6" style="display:none;"><nobr>0</nobr></td> </tr> </tbody> </table> </div></td></tr> </table></div>

Coordinator
Aug 7, 2012 at 3:07 AM

Hi chandravaleti,

Can you also provide the c# coded ui unit test code that is giving you the error for the table please?

Thank you.

Aug 7, 2012 at 10:55 AM

Hi,

Please find the below code....

//OR --

      public CUITe_HtmlTable termTable = new CUITe_HtmlTable("Id=G_ulbPlanxctl00xucTermxgrdTerm");       

public CUITe_HtmlCheckBox chkBox = new CUITe_HtmlCheckBox("Value=on");

 

 //Method to find out the Specific Term in  webtable.       

public static int TermOdom(int stRow, int endRow, long sheetTerm, long sheetOdom, CUITe_HtmlTable tableVal)        {           

int retVal = 0;           

while (endRow >= stRow)            {               

int midRow = (int)(Math.Round((endRow - stRow) / 2.0)) + stRow;               

int cellTerm;                            

int.TryParse((tableVal.GetCellValue(midRow, 3)), out cellTerm);  --- getting error here....

 

Thank you..

Coordinator
Aug 9, 2012 at 1:20 AM

Hi chandravaleti,

Thank you for the sample code.

I have checked in a fix for this issue in changeset #19095.

HtmlControlTests.cs contains a new unit test called HtmlTable_GetCellValueWithHeaderCell_Succeeds for this issue.

Thank you.

Aug 9, 2012 at 1:24 AM

Thank you, which means should I download the latest version? 

if not how should i see this change?

 

Thanks,

Chandra

Coordinator
Aug 9, 2012 at 1:52 AM

You will have to download, build, and reference the binaries from the latest source code from the "Source Code" tab.

Aug 10, 2012 at 3:19 PM

Hi,

 

Still I am getting the same error after I followed your steps.  

 

Thanks,

Chandra

Coordinator
Aug 27, 2012 at 1:27 AM

Hi Chandra,

Please try changeset #19632.

If you still get the same error, please provide the complete stack trace.

Thank you.

Coordinator
Sep 6, 2012 at 10:12 AM

There is also actually an even easier way to click the OK button from a javascript alert window:

bWin.PerformDialogAction(BrowserDialogAction.Ok);