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
    Mar 2008
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    WebCheckbox Issues

    Following 2 issues with webcheckbox -

    1. To verify whether the checkbox is checked or not, I am using following, but it returns a numeric value which is very weird -
    Msgbox (Browser("Browser").Page("Page").Frame("Frame1").W ebCheckBox("Name1").GetROProperty("Value"))
    It doesnt return on or Off

    2. The checkboxes on the page has specific displayed names,
    Checkbox 1 (Name1 - internal name) - Flight1
    Checkbox 2 (Name2 - internal name) - Flight2
    How do I get these displayed names ie Flight1 and Flight2 ?

    Pls reply asap. Thanks.

  2. #2
    Senior Member
    Join Date
    Feb 2008
    Location
    Los Angeles, CA, USA
    Posts
    861
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: WebCheckbox Issues

    1. Browser.Page.WebCheckbox("").GetROProperty("checke d") returns 0 for not checked and 1 for checked

    2. use GetROProperty("name") to get the name

    Please do some good to your basics by using QTP Help and some online research.

    Use object spy to look for the Run Time Object Properties for the object under test
    -Suchit

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

    Re: WebCheckbox Issues

    2. GetROProperty("name") returns Name1 and Name2 which are internal names of checkboxes and not flight1 and flight2.

  4. #4
    Senior Member
    Join Date
    Feb 2008
    Location
    Los Angeles, CA, USA
    Posts
    861
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: WebCheckbox Issues

    Object spy on the checkbox and see what is the property 'flight1' and 'flight2' are associated with!
    -Suchit

  5. #5
    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: WebCheckbox Issues

    Did you try GetROProperty("outertext") ??

 

 

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 10.00%
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 08:07 PM.

Copyright BetaSoft Inc.