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
What are the types of environment variables in qtp?
What is expert view and keyword view?
Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement
Explain the benefits of quick test pro(qtp)?
This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?
if our qtp vb Script may be Currepted then What we want do?
How does quicktest professional (qtp) identifies the object in the application?
hai, i completed my b.tech in 2010 with 62.3%. i having knowledge on manual testing and Qtp. i want Relavent experience in testing.watever may be d salary i dont bother..I just want to gain knowledge. i dont have good communication skills.
What is QTP testing process?
What is an expert view and keyword view?
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
How do I get the QTP scripts result in xml format by using vb script function?
Can we record using all the modes in a single script? Explanation with example is appreciated
can i change the runtime properties of an object ? How can i check if a parameter exists in database ?
Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution