If u r using descriptive programming to identify the object
where do u write the script for those objects? do u write
it in the expertview? plz do answer its urgent thanks
advance.

Answer Posted / krishan kant sharma

You need to write script in Expert Mode.
For example you want to click on one button available on
Calculator:
' Open Calculator
Systemutil.Run "Calc"
'Click on Button 1-simplest code
Window("text:=Calculator").winbutton("text:=1").Click
'Close Calculator
systemutil.CloseDescendentProcesses

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the concept of object repository?

524


hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company

1422


requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how

1472


An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?

648


how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page

1825






what is output value in QTP and how it can be used in automation testing

1433


How can i click on any Excel sheet's "H" column with out writing coordinates Ex:Window("Book1").WinObject("Book1").Click 498,14 I dont want to give coordinates like 498,14 Can i open "H" column by writing like Ex:Window("Book1").WinObject("Book1").Click "H" or Ex:Window("Book1").WinObject("Book1").Click "H","1" or Ex:Window("Book1").WinObject("Book1").Click H,1 If i want to click on "Sheet3" of an excel sheet, Can i open like Ex:Window("Book1").WinObject("Book1").Click "Sheet3" Please help me any one

1596


Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...

1482


In qtp, how you can use xpath to identify objects?

612


Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..

1279


How to use debug tools?

2193


Who uses qtp tool?

572


How can you identify the browser and its information using QTP script?

541


Hi Samrat, Thank u very much, what u said it is right.

1340


could any help me please, how to work on visual foxpro application using UFT

1680