Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Web
#1
Solved: 10 Years, 9 Months, 1 Week ago
I am trying to get a cell value out from a web table. I think it's HTML or equivalent. I am not sure how to do it. I am able to do it in Winrun by saying tbl_get_cell_data (table, row, column, out_text) and I cannot figure out a QTP equivalent.
Reply
#2
Solved: 10 Years, 9 Months, 1 Week ago
Hi anna Why dont you start a new thread and post your questions? That will help us to read every posts..
Reply
#3
Solved: 10 Years, 9 Months, 1 Week ago
Try Below
Code:
CellValue = Browser().Page().WebTable().GetCellDAta(RowNo,ColumnNo)
MsgBox CellValue
Reply
#4
Solved: 10 Years, 9 Months, 1 Week ago
As prince3105 suggested, Please make sure to have one question per thread.

I have splitted this thread.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#5
Solved: 10 Years, 9 Months, 1 Week ago
Thanks Ankur for your Instant action, I have been reading your posts for past one year.

Hats off
Reply
#6
Solved: 10 Years, 9 Months, 1 Week ago
This works great. Next question: How do I know which column/row something is in. In Winrunner when you hovered over the object with the GUI Spy you could see Row/Column. What do I do in QTP?
Reply
#7
Solved: 10 Years, 9 Months, 1 Week ago
Use Below

Code:
TableRowCount = Browser().page().WebTable().RowCount
TableColCount   = Browser().page().WebTable().ColumnCount
For i = 0 to TableRowCount-1
    For j = 0 to TableColCount-1
        CellValue = Browser().page().WebTable().GetCellData(i,j)
        Print "Row number - "&i
        Print "Column number - "&j
        Print CellValue
    Next
Next


Please Start a new thread for a new Post Anna.Sad
Reply
#8
Solved: 10 Years, 9 Months, 1 Week ago
Thanks .. Smile
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Split function in string nidhishnair 13 63,367 07-07-2020, 03:47 PM
Last Post: helmzshelmz
Question Split Function Chaithra N 0 1,014 12-18-2019, 11:33 AM
Last Post: Chaithra N
  Split a string with multiple delimiters in VBScript nandha 2 7,961 02-10-2018, 06:44 PM
Last Post: nandha
  Split Function diya 2 5,550 11-28-2012, 08:49 PM
Last Post: diya
Question Deatils on Split action with Nested type sams001 0 3,182 10-30-2012, 03:03 PM
Last Post: sams001

Forum Jump:


Users browsing this thread: 1 Guest(s)