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 / kishore
for i = 1 to 100
Dialog("xyz").winbutton("ok").click
a = dialog("xyz").winedit("name").getvisibletext(" ")
if a<>100 then
steps
else
exitrun
dialog("Login").WinButton("OK").CheckProperty(OK , disabled)
next
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What are the features and benefits of quick test pro (qtp 8.0)?
What is the file extension of the code file and object repository file in QTP?
Explain the concept of object repository and how quicktest professional (qtp) recognises objects?
If there is a change in the object type eg: A button is changed as link, 1. How to edit that in the shared object repository. 2.What options are available to edit the object within shared object repository other than copy from loca; 3.What would be the effect of the change in Coded Scripts within QTP and Functions stored in .vbs file which are loaded and used in QTP
Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji
What is the difference between rational rose and QTP?
i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework
I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that
Have you used xml check point in your project? How?
How to create Reusable and Multiple Actions?
What is the parameterization?
what is the difference between built-i function and In-built function?
What are the different ways to invoke an application using QTP?
How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined
What test cases can you automate using QTP?