QTP read webtable content

Posted by allenzzzxd on Stack Overflow See other posts from Stack Overflow or by allenzzzxd
Published on 2010-06-04T11:58:43Z Indexed on 2010/06/06 8:02 UTC
Read the original article Hit count: 279

Filed under:
|
|

Hello guys,

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

© Stack Overflow or respective owner

Related posts about web

Related posts about vbscript