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

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

1644


Which features or drawbacks of QTP lead to the upgrade for a newer version?

584


what frame work you are following?

1540


What is difference between design time and run time data table?

593


why text area checkpoints cannot used for web applications

1890






Write a script to verify font style and color of a windows object using descriptive programming

847


How would you export a script from one pc to another in qtp?

669


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

1509


Explain the terms test and business component?

556


How to find the path of folder in which the test is saved in qtp?

541


What is difference in global and action sheet in qtp?

624


What is the difference between rational rose and QTP?

1784


What is the difference in the global and action sheet in qtp?

579


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...

7252


What is output value? How many types of output values are there in qtp?

588