SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2

Thread: regd WbfGrid

  1. #1
    Junior Member
    Join Date
    May 2004
    Location
    Bangalore
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    regd WbfGrid

    Hi All,

    I've a WbfGrid(recognized by QTP) on my webpage.
    Inside this grid there are webelements,links,checkboxes and buttons.

    Now QTP allows me to traverse thro this grid and I'm able to go thro each row.

    However I'm not able to click/set any checkboxes that are present in this grid.

    I tried descirptive programming, used the method "getElementsByTagName" and also I've tried making use of ChildItem method.

    None of these techniques are setting the checkbox.

    Pl find the code for all the techniques:

    Method 1:
    Set objOrderDesc=Description.Create
    objOrderDesc("html tag").value = "INPUT"
    objOrderDesc("type").value = "checkbox"

    Set objOrderLink=Browser("MyPage").Page("AppPage").Wbf Grid("dgApp").ChildObjects(objOrderDesc)

    objOrderDesc(2).Set "ON"

    Method 2:
    Set objOrderLink=Browser("MyPage").Page("AppPage").Wbf Grid("dgApp").object.getElementsByTagName("INPUT")

    for each oCheckbox in objOrderLink
    oCheckbox.checked = true
    next

    Method 3:
    Set objOrderLink=Browser("MyPage").Page("AppPage").Wbf Grid("dgApp").ChildItem(2,6,"WebCheckBox")

    objOrderLink.Set "ON"

    QTP is not able to set the checkbox in all 3 methods and it is not throwing any error also.

    Any pointers with this regard are welcome.

    Thanks,
    Rampi

  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: regd WbfGrid

    Do an object spy on the one of the checkboxes and post its hierarchy and its properties.

 

 

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 12.50%
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 03:32 AM.

Copyright BetaSoft Inc.