SPONSORS:






User Tag List

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

    Return WebElement value

    I am having a problem getting a usable value from WebElement. I am using QTP9 vs web. the command I am using is this:

    Browser("1").Page("2").WebElement("Current Status:_35").GetROProperty("innertext")

    I am using innertext because it seems to be the only property containg any kind of usable information. Can anyone help me out please?

  2. #2
    Moderator
    Join Date
    Jan 2007
    Location
    Pittsburgh, PA
    Posts
    2,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Return WebElement value

    What is the error that you are getting?

    Are you storing the runtime property value into any variable?

    Ex:
    Var = Browser("1").Page("2").WebElement("Current Status:_35").GetROProperty("innertext")
    Msgbox Var

  3. #3
    Member
    Join Date
    May 2007
    Posts
    152
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Return WebElement value

    I am doing:

    msgbox Browser("1").Page("2").WebElement("Current Status:_35").GetROProperty("innertext")

    the error it gives me is this:

    Cannot identify the object "Current Status:_35" (of class WebElement. Verify that this object's properties match an object currently displayed in your application.

    the thing is, that when I do a gui spy on it - qtp finds it. when I do highlight in the application - it cant.

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

    Re: Return WebElement value

    Hi. just solved the problem by doing something else. Thank you/

 

 

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 02:22 PM.

Copyright BetaSoft Inc.