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). Pls anyone,
very urgent



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

Answer / hemakumar.m

1)Answer

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

Msgbox a

a=2

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More QTP Interview Questions

requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how

0 Answers   FIS,


Where virtual objects stores results?

4 Answers  


can any one please tell me QTP 9.2 supports which version of IE and Mozilla firefox.

1 Answers  


what happen in object repository(shared)if we call an existing action from an external action ? and what happen in object repository(peraction)if we call an existing action from an external action ?

2 Answers  


what is run-time object property in Object spy in QTP9?

3 Answers  






what is the use of automation frame work ??(QTP)

2 Answers  


What is the Risk Analysis? Waht types of risk analysis are there?

1 Answers  


Shared Object Repository is preferable while dealing with dynamic objects ok? descriptive prog also same? ok but why descriptive?(only for w/o application)

2 Answers   IBM,


When we use Object Spy? can we write QTP script before built is came in testing?

3 Answers   Impulse,


I have recorded a test using qtp to download a file in an application. Code: Browser("MFA Work Queue Manager").Page("MFA Work Queue Manager").Link("Rules Maintenance").Click Browser("MFA Work Queue Manager").Page("Rule Maintenance").WebEdit("txtSearch").Set "PmtType" Browser("MFA Work Queue Manager").Page("Rule Maintenance").WebButton("Search").Click Browser("MFA Work Queue Manager").Page("Rule Maintenance").WebButton("Export").Click Browser("MFA Work Queue Manager").Dialog("File Download").WinButton("Save").Click Browser("MFA Work Queue Manager").Page("Rule Maintenance").Sync Dialog("Save As").WinButton("Save").Click Dialog("Save As_2").WinButton("Yes").Click Problem: When running this test it gives an error at line no. 5 as Save button object is not identified by it's parent object. This code I ran 4 times after recording at it was working fine but 5th time onwords, it starts giving me the above problem. I used exist property option, Check Property option but none of this changes work at all. Kindly help...

1 Answers   Bank Of America,


How are actions and functions different in QTP?

0 Answers  


What is the recovery scenario in qtp?

0 Answers  


Categories