You have a WebTable in Web application. When you Record a
Scenario using QTP, WebTable didn't recognized and also
Repository is not having Webtable information. In this case
How to find RowCount and Coloumn Count?
Answers were Sorted based on User's Feedback
Answer / lakshmi
As per my knowlege, we can solve this by using Descriptive
Programing.Based on your question, we can't record webtable
and this object information is not available in Object
Repositiory but we can get the properties and their values
by using object spy. so in this case we can solve this by
using descriptive programing.
Function Web_Table(ProName,EProVal)
Set BP=Browser("Micclass:=Browser").Page("Micclass:=Page")
Set Desc= Descriptin.Create
Desc("Miclass").Value="WebTable"
Set Objs =BP.ChildObjects(Desc)
For i=0 to Objs.count-1
ProVal=Objs(i).GetROproperty(ProName)
If ProVal=EProVal then
Msgbox Objs(i).GetRowcount
Exit for
End if
Next
End Function.
Call Web_Table "name","WebTable_X"
I hope this will work to get the row count of a webtable.
Please let me know if you have answers.
Thx
| Is This Answer Correct ? | 7 Yes | 0 No |
How software automation specialist enter steps in the Expert View?
Explain the Different types of QTP test assets and their extensions?
Plz send one Tracebilitymatrix example? Anybody working on Realtime QTP Plz give contact deatils?
Can we put more than one action in a single script???? yes or no.....
HOW do we find a datasheet when there are 4 datasheets in data table.this question was asked by covansys interview.
How many types of Actions are there in QTP?
How does Parameterization and Data-Driving relate to each other in QTP?
i have two questions for regular expression :- Q1. I have date pattern eg-29/11/2011 29-11-2011 29.11.2011 Que- if any separator is there between date,month and year pattern should match else it should not match eg- pattern should not match in case of 2911-2011 Q2. let say i have a string and there is a number in between of that string eg.-Amount 30002.234 successfully credited to your account . now i have to match this pattern in such a way that even if decimal is not there pattern should match ,how i will do this using regular expression
how to click the link in webpage by using QTP Script????????
Hi guys pls any one send me the Qtp Licensed key of version 10.0 pls
How to handle "Java Runtime error" popup window in the web application ? Sometimes the application throws the error repeatedly... Is there any browser setting available to disable the error ?
if full in Object Repostoiory then how to load other Object Repository