05-03-2011, 10:06 PM
I am having the same problem. QTP does not recognize the two items I need to check as being in a webtable.
I did a view source on the browse pop up window:
My goal is to select two SFCs e.g. 1004-SITE2-4-PRD1.
I've tried the above code by actually adding a webtable object but get error message saying the _ALL_ objects description matches more than one of the objects currently displayed in your app.
Any ideas?
I did a view source on the browse pop up window:
Code:
</script>
<table border=1 cellspacing='0' cellpadding='3' bordercolor='#E5E4E4' WIDTH="100%">
<tr>
<th class='tableheading' width='5%'><input type=checkbox name="_ALL_" onClick="selectAllRowsSFCs();" >All</th>
<th class='tableheading' > SFC</th>
<th class='tableheading' > Item</th>
<th class='tableheading' > Qty</th>
<th class='tableheading' > Priority</th>
<th class='tableheading' > Date Queued</th>
<th class='tableheading' > Shop Order</th>
<th class='tableheading' > Status</th>
</tr>
<tr align="center" class="alternatetabletext" onDblClick="dblClickOneRowSFCs(0);" onClick="clickOneRowSFCs(0);" ><td ID="_DUMMY_CHECKBOX_" > <input ID="_CHECKBOX_" type=checkbox name="ROW0" ></td><td ID="SFC" >1004-SITE2-3-PRD1</td><td ID="ITEM" >1004-SITE2</td><td ID="QTY" >1</td><td ID="PRIORITY" >500</td><td ID="DATE_QUEUED" >4/7/11 2:53:03 PM</td><td ID="SHOP_ORDER" >000010015841</td><td ID="STATUS" >InQueue (RW)</td></tr>
<tr align="center" class="tabletext" onDblClick="dblClickOneRowSFCs(1);" onClick="clickOneRowSFCs(1);" ><td ID="_DUMMY_CHECKBOX_" > <input ID="_CHECKBOX_" type=checkbox name="ROW1" ></td><td ID="SFC" >1004-SITE2-4-PRD1</td><td ID="ITEM" >1004-SITE2</td><td ID="QTY" >1</td><td ID="PRIORITY" >500</td><td ID="DATE_QUEUED" >4/7/11 3:06:45 PM</td><td ID="SHOP_ORDER" >000010015841</td><td ID="STATUS" >InQueue (RW)</td></tr>
My goal is to select two SFCs e.g. 1004-SITE2-4-PRD1.
I've tried the above code by actually adding a webtable object but get error message saying the _ALL_ objects description matches more than one of the objects currently displayed in your app.
Code:
row = Browser("Certificate Error: Navigation").Page("CLN - Visiprise Manufacturing:_2").Frame("PodMain").WebTable("_ALL_").GetRowWithCellText("ITEMTEST1-1005-PRD1")
'intRow2 = objTable2.GetRowWithCellText("ITEMTEST1-1005-PRD1")
'msgbox intRow2
Set checkbox = Browser("Certificate Error: Navigation").Page("CLN - Visiprise Manufacturing:_2").Frame("PodMain").WebTable("_ALL_").ChildItem(intRow2,1,"WebCheckBox",0)
checkbox.Set "ON"
Any ideas?