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?
Answer Posted / 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 |
Post New Answer View All Answers
What are the advantages of Object Repository?
How to automate a script in mainframes environment? I have the terminal emulator Add in. Describe in detail.
What is the use of ordinal identifier in qtp?
Where you get the run time data table?
What is action split and the purpose of using this in qtp?
How to connect to a database?
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
Plz Explain AUTOMATION REFERENCE MODEL?
How to export quicktest professional (qtp) results to an .xls file?
we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?
what is error and fault in terms of software quality?
Define Environment Variable in UFT and its uses?
How to create scenario selector
Presently i am working on QTP 8.2 Version,i want to know features in 9.2 version, because i have not sufficient time to put the effort on the 9.2 version
Shall we add Local Repository to shared object repository,if yes,how we add