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
how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??
what is the difference between rational rose and QTP? WHICH TOOL IS BETTER TO LEARN? PLEASE SEND ME AT sana_50218@yahoo.com sandeep@epuratech.com
Differences between quicktest professional (qtp) and winrunner?
what are the utilities and drivers
How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?
How many types of recording modes in qtp?
Explain how to use QTP to check broken links on a page?
Please Don't mind .i want in detail the real time process i.e in each document what it contains.
Where we use data driver in qtp?
what is supply chain management?
Explain measuring transaction.
How you can make an action as re-usable action?
Why is Client side image is preferred over server side image?
if numbers are always changing write a script for that
How can you identify the browser and its information using QTP script?