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



You have a WebTable in Web application. When you Record a Scenario using QTP, WebTable didn't ..

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

You have a WebTable in Web application. When you Record a Scenario using QTP, WebTable didn't ..

Answer / raemsh

Yes, It worked.. Thanks for your answer9

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

how to merge object repositories?

4 Answers  


How to add a runtime parameter to a data sheet?

6 Answers  


Is there any relation between Keyword Driven Framework and Recording modes provided in QTP( whether Recording modes are applied on keyword driven framework or not?)

0 Answers   IBM,


write script for bitmap image?

0 Answers   CA,


i need the word "good morning" to be displayed by default whenver we click upon the blank test while opening the qtp. Could you please answer...

7 Answers  






Is it possible to call win runner script in qtp?

0 Answers  


Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........

0 Answers  


Hi guys can any plz help me how to send fax in sample Flight Appication

1 Answers  


How to Import the data from MS-Access in QTP?

1 Answers  


What is the diff between image and bitmap check point?

0 Answers  


hi all QTP recognizing objects as "string_1","string_2","string_3","string_4" like that but when using FOR LOOP for these.QTP not proceeding further can i declare these _1,_2,_3,_4 as a single variable

4 Answers   Livetek,


how to invoke the web application through script in qtp

8 Answers   Synechron,


Categories