Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Retrieve row number from web table
#1
Solved: 10 Years, 8 Months, 3 Weeks ago
Hi All,

I have a problem in retrieving row number from data table. I want to get the row no for specific data.

Code:
row= Browser(":: Cesar").Page(":: Cesar").Frame("frm_spnGrid").WebTable("1").GetRowWithCellText ("BAH-05:00-QTP")
msgbox row

BAH-05:00-QTP -
SHJ-BAH-05:00-QTP

when this code line execute, it gives wrong row no. it gives row number for the SHJ-BAH-05:00-QTP. I don’t know what is the reason. In here I have attached the web table image I used. I think both data are similar,

if any one knows how to solve this problem, please help me…
Thanks
Amilar


Attached Files Image(s)
   
Reply
#2
Solved: 10 Years, 8 Months, 3 Weeks ago
Hi Amilar,

Try giving start row and column numbers as below

Code:
Cesar").Frame("frm_spnGrid").WebTable("1").GetRowWithCellText ("BAH-05:00-QTP", colNum, 1)

here colNum is column number in which the text exists. Hope this works.

Regards,
Surya
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Scroll Browser to display Specific Row in WebTable kdunn 3 3,401 06-15-2018, 04:07 AM
Last Post: Ankur
  Set method not working for web number object Qtp_bunny 1 2,055 06-14-2018, 05:00 PM
Last Post: Ankur
  Working with Web Table Ilayaraja 4 2,993 05-28-2018, 12:50 PM
Last Post: Ilayaraja
  Obtaining sub-row (or band) information within an Infragistics Grid num1g8rfan 1 3,085 07-10-2013, 10:32 AM
Last Post: Staff
Question How to retrieve an XML data from a column in DB Ramya Devadoss 0 2,105 05-10-2013, 11:43 AM
Last Post: Ramya Devadoss

Forum Jump:


Users browsing this thread: 1 Guest(s)