Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Capturing a value in a webtable
#1
Not Solved
Hello all, i would like to say thank you in advance for all the help.i have two question...
1. if i get some general information/idea in how to use C# in UFT 12.5?

2.
Code:
Y = Trim(B("").p("").webtable("").GetCellData(C,R))
*the above code will capture the value in the specific web table(row and col), where there is one row but when i have more than one it would not capture it. any suggestion what i need to add.

please let me know if i need to provide more info

I am new to the field and still learning
Reply
#2
Not Solved
Hi EK21,

1. As documentary, you can write your code in any of IDE tools (should be Eclipse), then install LeanFT (it's comfortable with UFT 12.50) and call UFT execute your code.
Sorry, that just is my assumption because I still don't have plan to upgrade UFT 12.50

2. It may be:
Code:
Dim rows,cols,cells
cols = .Webtable("").GetROProperty("cols")
rows = .Webtable("").RowCount
For i = 0 to rows
For j = 0 to cols
  cells = .Webtable("").GetCellData(i,j)
  'do sth with cells value
Next
Next
Reply
#3
Not Solved
i applied your code but not working...
Reply
#4
Not Solved
Look in the object repository the value for rows and columns of ur webpage.
use it accordingly then
Reply
#5
Not Solved
thank you for responding Cuongtv, i applied the changes you suggesting but it is not working
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need help in capturing the Calculator result using QTP 11 vishruth143 0 2,110 01-20-2015, 11:08 AM
Last Post: vishruth143
  How to mask the particular read only mode fields while capturing screenshot in QTP kalaivanan123 2 3,533 03-18-2014, 11:31 AM
Last Post: basanth27
  Capturing the exact time when an operation is performed. Dilliz 2 3,038 01-09-2014, 03:30 PM
Last Post: Dilliz
  Capturing value from data table kriday 5 4,563 10-31-2013, 05:41 PM
Last Post: ramkamal
  Capturing color in a webpage kriday 1 2,846 06-27-2013, 12:56 AM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)