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
What is an object repository?
Explain the concept of how quicktest professional (qtp) identifies object?
What is the differences between image check point and bit map check point?
Describe the differences between functions and actions in UFT?
What is file database?
what kind of frame work you used in your last project?
What are table and db checkpoints?
Explain the differences between table and db checkpoints?
Hi Friends, Would be great if you can provide the Model Question paper, Web site link or any reference s. Thanks & Regards, Byzoor,
i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.
How can i test an application like Google Earth.In my application data will be fetched from a oracle database based upon which graphs are generated..so these all are dynamic..how can i use qtp here..alongwith that how can i test the map generated by a satellite just like google earth..
Explain more about the Test Fusion Report of QTP?
What is synchronization point in QTP?
How you can make an action as re-usable action?
What is meant by Step generator?what is the use of this? we have 3 steps know there what r all those.? can u all pls give me clear idea of this