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

distinguish between old version and new version QTP features.

1855


hi to all, i need a code.. in flight application 1.i need to login first then i need to insert 3 new orders... 2.i have to log out 3.i have to login again with different user 4.need to insert 2 new orders 5.then need to log out 6.then again login with different user 7.3 new orders create and log out 8.but we hv to do this using data table and actions please help me

1750


hi nani my doubt is how does qtp process metrix related to software process.

1540


What is the difference between qtp and selenium?

542


Is it possible to change the property value at runtime? How it is possible?

568






How many add-ins comes by default with quicktest professional?

549


Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?

3267


Hi Friends, Can anyone help me out in this one? In QTP, I am using Data Driver and want to parameterise multiple values (say 3 values ) for a field. How can I do it using Data Driver wizard? Plz mention it step-by-step. In the end after doing the needful, on opening the Data Driver window, how can I get number (i.e. 3) in the Parameterised column for that particualr value? Thanks a lot in advance.

1437


What are the recording modes in qtp?

577


Can the user toggle between using Local OR and shared OR for the same action?

553


Suggest and Define a solution for an application whose objects are not recognized by UFT?

660


What is checkpoints for quicktest professional?

541


supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?

1352


Explain the concept of how quicktest professional identifies object?

528


Whar are the challenges do we face while testing web based applications using the automation tool QTP or any??

1632