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
Whar are the challenges do we face while testing web based applications using the automation tool QTP or any??
Which features or drawbacks of QTP lead to the upgrade for a newer version?
what frame work you are following?
What is difference between design time and run time data table?
why text area checkpoints cannot used for web applications
Write a script to verify font style and color of a windows object using descriptive programming
How would you export a script from one pc to another in qtp?
Hi Frenz... I would like to take up the QTP certification . Can anyone tell me what is the procedure. n if anybody have the study materials pls fwd it to jkpunathil@gmail.com
Explain the terms test and business component?
How to find the path of folder in which the test is saved in qtp?
What is difference in global and action sheet in qtp?
What is the difference between rational rose and QTP?
What is the difference in the global and action sheet in qtp?
before launching qtp, we need to close all the open browsers u dont know what are all the browsers either it might be ie,mozilla etc and u dont know how many brosers are open.... u need to close all these before launching qtp.. can anyone plz temme d solution...
What is output value? How many types of output values are there in qtp?