one ok button and one text box is there.when i click on ok
button in that text box one no. will display from 1 to 100
randomley.if that is not 100 when we click on ok button
again ,again another text box ll created with another no.
we will continue this till the text box created and
displays 100.and when its 100 ok button should disabled.
remember thet no will display not seriely ,it displays
randomley,and each time new text box will created.

Answer Posted / abc

for i=1 to 100
Dialog("aaa").WinButton("OK").Click
a=Dialog("aaa").WinEdit("Name").Winbutton
("OK").getroproperty("visible")
If a.Exist then
Reporter.reportevent 1,"WinButton","WinButton Exist"
Else
Reporter.reportevent 0,"WinButton","WinButton does not
Exist"
End If
Next

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to save your test using quicktest professional?

518


How to export quicktest professional (qtp) results to an .xls file?

587


How are actions and functions different in QTP?

644


What is the quicktest professional testing process?

517


What is quicktest professional window?

548






Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)

1609


What is the descriptive programming?

1501


Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project

1625


Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance

1732


Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..

4114


How to automate a script in mainframes environment? I have the terminal emulator Add in. Describe in detail.

1678


Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain

1442


What is the Difference between test object and run time object?

594


I want to configure the OR and library files to a particular QTP test during run time. Note: OR and Library files are located in Quality Center. Is it possible in QTP? Anybody having code?

1358


What is the Difference between copy to action and call to action?

574