please write a script to find the text in a application.
Note: i dont know the location of that text where it is
located. just like negative testing.

Answer Posted / gangadhar reddy

a=Dialog( ).GetTextLocation("OK",x1,y1,x2,y2)
msgbox a
if a=True then
msgbox "text found"
else
msgbox "text does not found "
end if

'OK=text string to be found on app
'x1,y1,x2,y2 are the coordinates

try this once you get the result

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i need to add 1000 users in a domain i written the script for that and it is running successfuly but the problem is that my system is not the user of that domain in which i have to add users so for adding users in that domain i have to install qtp on that another system, can anybody suggest me the way to add those users from my system ultimately i want to know how to access remote computer through script

1424


What are benefits of qtp?

585


How to build scripts that access data from external sources?

1614


How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?

576


What is the use of text output value in quicktest professional (qtp)?

602






what testplan contents and what test strategy contents,what is the diff b/w them

1651


What is debugging? How you debug your script?

612


Tell me about your project? please help me how to tell about insurance project

1537


Where can I find and view run-time data table?

531


PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME

5964


how to test load test and block box testing an a web based application pls give ans briefly

1358


what is keyword driven testing in qtp?n how is it useful?

1493


Where should i find checkpoint and virtual objects's Object properties and values in the QTP 9.2 Means where checkpoints or virtual objects related data will store If i want to get the runtime object properties how can i use Getroproperties on Checkpoints

1462


hi guys, pls tell me for testing institution training hub, hitech city is best or not?

1323


What is the expert view?

557