SPONSORS:






User Tag List

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

    The Webtable is not getting recognised

    Hi All,

    My Greetings again.
    Actually i am trying to fetch a value from the webtable.
    My piece of code looks like this.
    -----------------------------------------------------------
    objBrw = "Report Logs"
    objPge = "Report Logs"
    objWebTbl ="reportLog"

    rcount = Browser(objBrw).Page(objPge).WebTable(objWebTbl).R owCount
    msgbox rcount
    ccount= Browser(objBrw).Page(objPge).WebTable(objWebTbl).C olumnCount(rcount)
    msgbox ccount
    For i = 3 to rcount
    For j = 2 to ccount
    a = Browser(objBrw).Page(objPge).WebTable(objWebTbl).G etCellData(i,j)
    msgobx a
    Next
    Next
    ------------------------------------------------------------
    I have attached my application screen shot too.
    Now we create an object for everything and make it a function later.
    when i run this , it says :
    Browser not recognised.
    Similarly, for the page and webtable.

    If you ask me what i am trying to do here , i would say...i am trying to fecth the value of the second column . It should say "Complete"..we have to compare this with the actual result and print a message using reporter.reportevent.

    like a [ i have declared in the code ] = status("complete")
    then
    {
    do this
    }
    else {
    do this
    }

    can anyone help.
    Thanks a ton.
    Josh Q
    Attached Images Attached Images

  2. #2
    Advanced Member
    Join Date
    Aug 2007
    Location
    Six Feet Under
    Posts
    717
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: The Webtable is not getting recognised

    [ QUOTE ]
    Browser not recognised.
    Similarly, for the page and webtable.


    [/ QUOTE ]

    If the browser doesn't recognize how would the Page and WebTable [img]/images/graemlins/laugh.gif[/img]
    try or adding some more property to your browser and then debug.

    Browser(objBrw).hightlight()
    Browser(objBrw).Page(objPge).hightlight()
    Browser(objBrw).Page(objPge).WebTable(objWebTbl).h ightlight()
    and check does it. if yes similarly
    Browser(objBrw).Page(objPge).WebTable(objWebTbl).G etCellData(1,1)..hightlight() 'start from
    1st and then increase. [img]/images/graemlins/smile.gif[/img]

    if still no luck screen shot can't help us. attach the source the source code in plain txt file.
    Thanks,
    Manish Bansal

    Checkout Blog Page At
    http://www.softtechlabs.com

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

    Re: The Webtable is not getting recognised

    Hi Try this script......... actually in your code you need to add more than 1 one property and value to the object for unique identification to QTP.

    set ReportLogs =Browser"miccalss:=broswer""name:= ", "version:= ").page("micclass:=page","title:=", "version:= ")

    rcount = reports.WebTable("htmltag:=table","name:=","visibl e:=true").RowCount
    msgbox rcount
    ccount= reports.WebTable("htmltag:=table","name:=","visibl e:=true").ColumnCount(rcount)

    msgbox ccount
    For i = 3 to rcount
    For j = 2 to ccount
    a = reports.WebTable("htmltag:=table","name:=","visibl e:=true").GetCellData(i,j)
    msgobx a
    Next
    Next

    Correct me If am worng

    bhagvatula.balu@gmail.com

 

 

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.11%
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 06:14 AM.

Copyright BetaSoft Inc.