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 / swarup

Hey try this...

Its going to work

Dim a, Max
max = InputBox ("Enter Maximum limint of Number")
For i= 1 to max
Dialog("Text:=DialogWindow").Activate
Dialog ("Text:= Dialog Window").WinButton("Text:= OK").Click
a= Dialog("Text:= DialogWindow").WinEdit("Attached Text:=
TextField:").GetVisibleText
If a <> 100 Then
Next
else
Dialog ("Text:= Dialog Window").WinButton("Text:= OK").
checkproperty (Object (OK) disabled)

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the recovery scenario in qtp?

577


www.icici.com ,after this.. home page wll came, in this page what r the items we r going to test for manual and what are items we r going to test for QTP... explian clearly with example

1733


How many types of recording facility are available in quicktest professional?

567


Explain quicktest professional (qtp) testing process?

539


What is recovery scenario in qtp?

587






What are the different types of functions available in qtp and explain ?

573


Shall we add Local Repository to shared object repository,if yes,how we add

5703


Hi,All How to create a link in excel sheet using qtp

3003


What are the steps involved in the recovery scenario wizard?

559


How will you check a web application for broken links using qtp?

554


What is the default add-ins in qtp?

558


.have you ever written compiled module? if yes , tell me about some of the function that you wrote.

1684


What are the trigger events in qtp?

575


Have you used xml check point in your project? How?

551


How does you test a weblink which is changing dynamically?

557