SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    HTMLTable Information

    User Sokol, Spencer (Spencer_Sokol@firstdatabank.com.nospam) posted:

    Howdy folks!

  2. #2
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: HTMLTable Information

    User Steve Gray (SGray@bridgemedical.com.nospam) posted:

    Use the DOM. See IE_Utils on the yahoo groups files archive site.

    "Sokol, Spencer" <Spencer_Sokol@firstdatabank.com> wrote in message
    news:152752@sqa-suite-users...
    table.
    tables
    not
    "Type=HTMLDocument;Index=1;\;Type=HTMLTable;Index= 2;\;Type=HTMLTableCell;Ind
    not
    ---

  3. #3
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: HTMLTable Information

    User (kwphipps@statestreet.com.nospam) posted:


    You can't reference a cell directly in Robot.

    You can use the Document Object Model(DOM) and IE_UTil as someone else
    suggested.

    You can ask the devlopers to give an HTML id to each cell, then they could
    be referenced directly.

    You can ask the developer's to provide the ability to export the table to a
    file or array that you could then access.

    I believe you can get the object properties for the table and change the
    row / column property to traverse the table.

    No solution perfect, just trying to offer some ideas.
    Ken Phipps



  4. #4
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: HTMLTable Information

    User Sokol, Spencer (Spencer_Sokol@firstdatabank.com.nospam) posted:

    Thanks!

    There aren't row/col properties for an html table, though. I had dev
    programmatically put ids for each table and each cell therein. (i.e table1
    has cells table1-1, table1-2 ... table1-n) Makes for pretty simple
    traversing of dynamic tables via
    SQAGetProperty("Type=HTMLDocument;Index=1;\;Type=H TMLTableCell;HTMLId=table1
    -1" ...

  5. #5
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: HTMLTable Information

    User Steve Gray (SGray@bridgemedical.com.nospam) posted:

    Well, each row begins with a tr tag, and each cell with a td tag, so, I
    guess I don't know what you mean by not having row/col properties.. for a
    given table, use GetElementsByTagName to find how many tr tags there are,
    and you have a row count. For each row, do a GetElementsByTagName to find
    out the td's to get a count of columns (actually cells per row, but let's
    not quibble...) - the cells are children of the row... then you just get the
    innertext property of the cell in question and assign it to a string.
    However, the SQABasic "string" is limited to 32k characters, so you will
    still get bit by that...


    "Sokol, Spencer" <Spencer_Sokol@firstdatabank.com> wrote in message
    news:153143@sqa-suite-users...
    table1
    SQAGetProperty("Type=HTMLDocument;Index=1;\;Type=H TMLTableCell;HTMLId=table1
    into
    to
    a
    tables
    not
    ************************************************** **************************
    ************************************************** **************************
    ************************************************** **************************
    ************************************************** **************************
    not
    ---

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 13.04%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:28 AM.

Copyright BetaSoft Inc.