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
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
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
Explain the checkpoint in qtp?
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.
could any help me please, how to work on visual foxpro application using UFT
What is quicktest professional (qtp)?
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?
How many types of Automation frameworks are there in UFT? Describe them.
What is data driver in qtp? Where we use it?
Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?
Hi All, I Want To excute scripts batch without using QC .I need code for that Thanks Balaji
How do you convert manual test cases to automated test cases?
How to customize checkpoints with parameters?
Are Shared ORs read-only?
Why we load add-ins in qtp?