1. Pls can anyone give me the descriptive programing
script to find the number of edit boxes in a login window
in flights reservation (windows application only not web).
2. Using descriptive programing, how do you handle
changing URLs. Pls anyone, very urgent

Answers were Sorted based on User's Feedback



1. Pls can anyone give me the descriptive programing script to find the number of edit boxes in a..

Answer / hemakumar.m

1)Answer

Dim oEditDesc
Set oEditDesc=Description.Create()
oEditDesc("micclass").value="WinEdit"
a=Dialog("text:=Login").Childobject(oEditDesc).Count
Msgbox a

Is This Answer Correct ?    3 Yes 0 No

1. Pls can anyone give me the descriptive programing script to find the number of edit boxes in a..

Answer / sanu

Try this...

Set obj_edit = description.Create
obj_edit("nativeclass").value = "Edit"
Set EditDesc = dialog("Login").ChildObjects(obj_edit)

msgbox "Number of Edit Fields : "& EditDesc.count

For i = 0 to EditDesc.count - 1
EditDesc1 = (EditDesc(i).getROProperty("Attached Text"))
msgbox EditDesc1

Next

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More QTP Interview Questions

Could any one suggest web site links to learning VB Script for QTP purpose??

3 Answers  


can we run the scripts of qtp 8.2 in the qtp7.0?

2 Answers  


How to call .vbs funtion , Library files in QTP? plz Explain indetail(chandana)

6 Answers   Wipro,


Discuss quicktest professional (qtp) environment?

0 Answers  


What are Test case selection criteria for Automation?

2 Answers  






How do u write a regular expression for date (dd/mm/yyyy) field?

10 Answers  


can anyone please tell me what are all the shortcut keys used for qtp9.2? Thanks in advance..i expect ur valuable reply that help us our team???

1 Answers  


How do we call Library Files(.vbs) in the Test Script Thanks in Advance...

6 Answers  


Explain the benefits of quick test pro(qtp)?

0 Answers  


How many types of status are there?

0 Answers  


scalability testing comes under in which tool?

4 Answers   EpuraTech,


What are the two types of repositories available, explain them?

0 Answers  


Categories