What is the difference between gettoproperty and
settoproperty?Explain with an example?

Answer Posted / brinda

GetToProperty:
eg: a=window("Flight Reservation").WinRadioButton
("Business").GetToProperty("checked")
msgbox a

SetTOProperty:
Suppose in first build, it was "OK" button and now in the
modified buit it is "Yes" button.
you need to change the button name.
window("-----").WinButton("OK").SetTOProperty "Text", "Yes"

This will change the button name to "Yes".

Hope this helps....

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?

1521


if mandatory and Assitive propertys are shows same how will u write skript in QTP window

1628


Explain object spy in qtp.

588


what is the advantages and disadvantages of using functions instead of re usable actions

1431


what are the issues we will get when there is migration from QTP 8.2 to QTP 10.0? Is there any problem in executing scripts of 8.2 on 10.0?

1450






Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.

1611


who QTP recognizes the object stored in object repository?

1663


How to create a standard checkpoint ?

559


how to prepared for first for the first interview?

1799


How QA specialist can identify when programmatic descriptions are useful?

1974


please post the interview questions for QA position in FACTSET

3954


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

1403


What do you mean by checkpoints in qtp?

561


What is the difference between call to existing action and copy of an action?

605


i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 length.it should not take spectial letters.it should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet

1761