SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    May 2008
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Gettin a value out of a .WebTable object

    I want to get an individual value out of a WebTable object and get it into a local variable. I understand the words i need to use but not in the order i need to used them.

    Does anyone know how I can make this line of code work

    Dim MyWebTableValue
    MyWebTableValue = Browser("a").Page("b").WebTable("c").ChildItem(x, y, "WebElement", "0").GetROProperty.innertext

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Gettin a value out of a .WebTable object

    Dim MyWebTableValue
    MyWebTableValue = Browser("a").Page("b").WebTable("c").ChildItem(x, y, "WebElement", 0).GetROProperty("innertext")

  3. #3
    Junior Member
    Join Date
    Apr 2008
    Posts
    25
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Gettin a value out of a .WebTable object

    You may try this

    Dim MyWebTableValue
    MyWebTableValue = Browser("a").Page("b").WebTable("c").ChildItem(x, y, "WebElement", "0").GetROProperty("innertext")

    Or
    if you just want to get text out of a cell ( which is what is implied when you tried to use innertext)

    you may use

    MyWebTableValue =Browser("a").Page("b").WebTable("c").GetCellData (Row_number, Column_number)

  4. #4
    Junior Member
    Join Date
    May 2008
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Gettin a value out of a .WebTable object

    Invalid Syntax, Expected Identifier at ("innertext")

  5. #5
    Junior Member
    Join Date
    May 2008
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Gettin a value out of a .WebTable object

    Nice one, works like a dream, thanks! [img]/images/graemlins/smile.gif[/img]

 

 

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 11.54%
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 04:23 PM.

Copyright BetaSoft Inc.