SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Senior Member
    Join Date
    Jun 2004
    Location
    Miami,FL
    Posts
    949
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    WebList inside WebTable

    Hi,
    When I recorded I got this:
    Browser("Traveler Information,").Page("Traveler Information,_5").WebList("travelerProfiles[0].id").Select "Test Membership Twelve Month (Primary Member)"

    I am trying to make this DP and selectiong the first item in the WebList, the Object Spy shows WebTable on top of the WebList while the recording as above doesn't.
    Here is my equivalent DP
    Browser("micClass:=Browser").Page("micClass:=Page" ).WebList("html tag:=SELECT","name:=travelerProfiles[0].id").Select "#0"

    QTP couldn't recognize the Object. I tried using different WebList properities but it didn't work.
    Help appreciated.
    Thanks

    [ 01-05-2006, 12:15 PM: Message edited by: chillyhouse52556 ]
    "I realize it's an error, but no one is going to try to do that!"
    From "Top 10 Stupid Comments from Developers".

  2. #2
    Member
    Join Date
    Dec 2005
    Location
    Mexico
    Posts
    53
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: WebList inside WebTable

    I use something like this
    I add the Webtable manually from the OR , and I make this line

    set WebTblObj = Browser("BBB").Page("PPP").Frame("FFF").WebTable(" WT")

    var_RowCount = WebTblObj.RowCount

    For I = 2 TO ( var_rowcount - 1 )

    Set WebListObj = WebTblObj.ChildItem(I,Column,"WebList",0)

    WebListObj.Select DataTable ("field", dtGlobalSheet)

    Next

    This because , if I try to add the weblist directly QTP put the line like you said, then I Add the object but taken the father object, in this case the WebTable.

    Also, I get every item from the weblist and take some desicions with them.

    Saludos.

  3. #3
    Senior Member
    Join Date
    Jun 2004
    Location
    Miami,FL
    Posts
    949
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: WebList inside WebTable

    guys I solved it and I had conclusions to validate.
    1- with WebList inside WebTable you have to use the Test Object Properities not the Run Time Properities
    2- You couldn't mix TOP and ROP in one DP Object.
    I am not sure if the above true
    but what happened
    I used the tagName and id (2 RT properties) and QTP couldn't recognize the object
    then I used html tag , html id (2 TOP) and it works [img]images/icons/frown.gif[/img]
    I don't know the exact reason yet?
    "I realize it's an error, but no one is going to try to do that!"
    From "Top 10 Stupid Comments from Developers".

  4. #4
    Senior Member
    Join Date
    Jun 2004
    Location
    Miami,FL
    Posts
    949
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: WebList inside WebTable

    I am facing another problem now with WebEdit
    For i=1 to 3
    Browser("micClass:=Browser").Page("micClass:=Page" ).WebEdit("html tag:=INPUT","name:=travelerProfiles["&i&"].firstName").Set "naf"
    Next

    QTP couldn't recognize the above object.
    if you have any suggestion please let me know.
    Thank you
    "I realize it's an error, but no one is going to try to do that!"
    From "Top 10 Stupid Comments from Developers".

  5. #5
    Senior Member
    Join Date
    Jun 2004
    Location
    Miami,FL
    Posts
    949
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: WebList inside WebTable

    thanx for your reply
    I solved the problem by using \ in front of the any meta character(,[,.,...etc. and it worked
    "I realize it's an error, but no one is going to try to do that!"
    From "Top 10 Stupid Comments from Developers".

 

 

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 © 2017 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 © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:26 AM.

Copyright BetaSoft Inc.