Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with Spying HTML Table
#4
Not Solved
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:
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_" >&nbsp;&nbsp;<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_" >&nbsp;&nbsp;<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?
Reply


Messages In This Thread
Help with Spying HTML Table - by gsatle - 09-30-2010, 04:02 PM
RE: Help with Spying HTML Table - by guin.anirban - 09-30-2010, 10:01 PM
RE: Help with Spying HTML Table - by cdesserich - 10-01-2010, 02:32 AM
RE: Help with Spying HTML Table - by jerel2k11 - 05-03-2011, 10:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Customized HTML reports in QTP azeem 11 49,495 12-31-2016, 02:57 PM
Last Post: chevronneraji
  [UFT] Get text into DIV through HTML tag robertosalemi 2 5,533 03-29-2016, 09:43 PM
Last Post: robertosalemi
  How to attach HTML file to Email Naresh 0 3,070 04-06-2015, 02:04 PM
Last Post: Naresh
  System hangs while spying an object in Windows 7 OS prithwiraj1990 0 2,019 08-06-2013, 05:45 PM
Last Post: prithwiraj1990
  How to generate QTP report in a new file(html)? yogesh kancherla 5 14,893 10-21-2012, 04:52 PM
Last Post: yogesh kancherla

Forum Jump:


Users browsing this thread: 2 Guest(s)