| || |
Row count for Web Table
The row count is constant in the object repository with row=14 and it is not detecting the row count in the application. Any help will be greatly appreciated
For a= 1 to Browser("Check in").Page("Check in").WebTable("html tag:=TABLE","name:=Document").rowcount
y=Browser("Check in").Page("Check in").WebTable("html tag:=TABLE","name:=Document").GetCellData(a, 1)
If y=Datatable("A", dtLocalSheet) Then
a = a -1
Browser("Check in").Page("Check in").Image("alt:=Add","index:="&a).Click
Hi if you have the object in repository why you are using DP in your code?
Browser("Check in").Page("Check in").WebTable("html tag:=TABLE","name:=Document").rowcount ----It should be like below
Browser("Check in").Page("Check in").WebTable("Table name added in repository").rowcount (or) .GetROProperty("Rows")
Thanks for the reply, but when I changed the statement above, it is returning value 1 even though there are at least 10 rows.
I am resolve the issue, hopefully no problem with the rowcount, but one issue I am having is when I select a value from the qtp datatable row 1 value and try to get the next row I am unable to do so during runtime. How can I do a setnextrow that I will pick up the next value from the datatable until all the values have been selected during runtime. Thanks
Hi Glad you solve the issue, I presume the issue lies with the object. Here you go datatable.SetCurrentRow() method.
For i = 1 to 10
Last edited by venu.adhikesevan; 10-29-2013 at 08:44 PM.
hello, the statement above is within a bigger for loop and when the bigger for loop runs it capture the runtime data and store it in the column A in the localsheet and then the statement above will pick the runtime and verify against the application. How can I add this in the statement?
I'm trying to understand your question. Maybe it would be useful to us if you write it out in pseudo code what you are trying to do. I don not understand the levels of looping.
Something such as the following would clarify what you are trying to do.
Get Table Row count
Loop Level 1
Loop Level 2
Get Cell Data
End Loop 1
End Loop 2
Tags for this Thread