I have a WebTable in QTP like:
<TBODY>
<TR></TR>
<TR>
<TD>
<TABLE>
<TR>
<TD>
<DIV class=divRow id=divRow_d_0>
<DIV class=divFirst>1</DIV>
<DIV class=divData>toto</DIV>
<DIV class=divData>fofo</DIV>
</DIV>
<DIV class = divRow id=divRow_d_1>
<!--same structure here-->
</DIV>
</TD>
</TR>
</TABLE>
</TD>
</TR>
<TR></TR>
</TBODY>
Here, I want to capture the values divFirst and divData for each divRow, ideally, store every divRow in a string.
Could someone please tell me how can I do that?
Thanks a lot
Best Answer
This seems to work:
The reason I'm using descriptive programming with an index that will run out is that
ChildObjects
does not return theseWebElements
(Obviously you will want to do something other than MsgBox with the values.)