how to change the properties of object during run time . plz
give the code using flight reservation

Answer Posted / raju

We can change the property value of an object in Object
repository at runtime by using "Settoproperty".

For example If we want to change the text property of
submit button to save at run time, then we should use this
property to let the tool identify that the property is
changed so that Object Identification issues do not occur.

Syntax : Window("Window Name").page("Page Name").webbutton
("submit").settoproperty(text,"submit","save")

Next time if we execute this script statement----

Window("Window Name").page("Page Name").webbutton
("submit").click

tool doesn't face any difficulty in clicking on save
button..as the text property value of submit button is
changed to save....


Similarly we can change the property values of the objects
in Object Repository using this settoproperty..

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

suppose i login into gmail page after that i read all the messages (say 10 messages) i have to send (SAVE) the messages in Html,notepad and i have to replay(Compose) send the messages please give me the code and give mail id so that i can clear my question

1488


can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process

1287


Explain the checkpoint in qtp?

594


When we r doing data driven test with chkpts, i want to insert formulae in data sheet but i didn't get. How we wil do that plz. explain in detail.

1607


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

1687






What is quicktest professional (qtp)?

567


There is an built in window application in qtp9.1,i.e.Flight4.0.i want to implement the recovery maneger on it.How can i do this?

1626


How many types of Automation frameworks are there in UFT? Describe them.

559


What is data driver in qtp? Where we use it?

565


Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?

1691


Hi All, I Want To excute scripts batch without using QC .I need code for that Thanks Balaji

1324


How do you convert manual test cases to automated test cases?

583


How to customize checkpoints with parameters?

3020


Are Shared ORs read-only?

628


Why we load add-ins in qtp?

626