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 is the syntax to call one script from another?
How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?
How to interact tool & application build in QTP?
What are the two types of repositories available, explain them?
How will you report the bug and explain the defect tracking sheet you handled?
Explain the types of object repositorys in qtp?
Hi, is it possible for recording shortcut key during record session? The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.
Why is Client side image is preferred over server side image?
describe some problems that u had with automating testing tool?
What is use of object spy?
Explain calling sub procedure.
Hi, How Accessibility checkpoint in QTP can be implemented in the test script?
Why is action split used by qtp?
Explain the concept of object repository?
what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?