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

1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?

0 Answers  


what to do if application have 3 "ok" button with same logical name and same properties, how qtp can identify them.

11 Answers   Infosys, Intel,


Tell when we call the function? tell with example.

1 Answers  


in a web page How to check and display a particular word from a paragraph?

0 Answers  


Can any one send me the QTP Basic Coding Samples?

0 Answers  






What is the file extension of the code file and object repository file in QTP?

0 Answers  


how can i call an external action,which is not added external action of an action?

2 Answers   Ordain Solutions,


how to use command prompt using qtp?

8 Answers   HCL,


HI ALL I AM WORKING AS A AUTOMATION ENGINEER FROM PAST 2 MONTHS IN QTP,MY QUESTION IS IF I OPEN THE BROWSER FIRST & THEN THE QTP LATER MY OBJECT SPY WILL NOT WORK,Y IT IS SO..IF U HAVE THE ANSWER PLZ MAIL ME AT AKSHAR.MYSORE@GMAIL.COM

8 Answers   Infosys, TCS,


Hi all, On recording a particular Web application with QTP,Have came across a problem for which I havent found a solution so far.. The script of importance is as follows: Browser("Personalized Start Page").Page("XYZ").Frame ("mainFrame_4").Link("address.csv").Click Browser("Personalized Start Page").Page("XYZ").Sync Dialog("0% of dms.php from XYZ-").Dialog("File Download").WinButton("Save").Click My problem is that on recording the application with QTP and clicking the "address.csv" link another browser window comes up temporarily followed by the Windows "FileSave" dialog.The browser window which came up closes down when the Windows "FileSave" dialog is visible and I save the file to a windows location. On the "Record and Run" settings under Qtp,have activated settings for web and windows applications. But when I run this recorded script,and after the "address.csv" click,The browser window comes up and goes down,No Windows "FileSave" dialog comes up and the QTP shows the error Dialog("0% of dms.php from XYZ-") object is not found,though this object is there in the repository. Have tried putting the Dialog("0% of dms.php from XYZ- ").Exist property.But the "Exist" property is not recognised by the dialog at all. Any help in this direction is appreciated.. Thanks in advance J

1 Answers   ADP,


How can we conduct U-I Testing by using QTP??????

0 Answers  


Discuss quicktest professional environment?

0 Answers  


Categories