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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / nikhil sood

see guys by using getroproperty method we can retrive run
time property value but we can nothave method to change
runtime property please let me know if i am incorrect

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More QTP Interview Questions

can any one tell me how to select some text.i need the script for that

1 Answers  


what are the functions availabla in QTP? what are the data types in QTP?

2 Answers   Spry Technologies,


can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.

2 Answers   AppLabs,


what is retesting?

2 Answers  


How to take screen shot of desktop by using vb script code or is there any method?

1 Answers  






What are the types of object repository?

0 Answers  


How to run a test using quicktest professional (qtp)?

0 Answers  


i am trying to automate yatra.com,in that site, when i go to automate the Leaving from field showing as a WEBEDIT, but when i enter 1 or 2 char, it displaying dropdownlist, i try to use keyboard automation to select the item from that list but it is not possible, can anybody help he. Thans for posting the Answer

0 Answers   TCS,


I want to create Excel object on another machine which is in network i written the code "Set se=createobject ("Excel.Application","\\ankur")"here \\ankur is the name of that machine but i m getting the error of permission denied create object can anybody help me

2 Answers  


When Object Repository is available what is the necessity of having Descriptive programming which needs more scripting efforts.

3 Answers  


How qtp identifies objects?

0 Answers  


what skills needed to be good test automation?

3 Answers  


Categories