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
Explain the concept of object repository & how qtp recognizes objects?
images are dynamically changes how to compare two images with out using the bitmap
What is the registration process and examination fees?
Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work
On the website, the protocol has been changed https: to https what you will do? Tell me your approach?
Which recording modes need more memory?
Hi, I am using OutputCheckPoint and I am storing the value in the data table. The stored value for column:bedroom:"Bed:4" The another value for column:bathroom:"Bath:2 Full,1 Partial" I need only the no 4 from the first column. I need only the no 2,1 from the second column. I used split array,but it also show array(0) has the value"bed:4" ..... Even though I highlight only 4,It is seleting the full value "bed 4".How can I get only the nos Thank you Uma
Without using gui map editor we can recognize the application in winrunner ?
What is checking bitmaps?
Please help me by providing the License key for QTP 9.2, at guru_aarya@yahoo.co.in Best Regards Gururaj.B
Can U Explain about QTP tool from older version to latest version also its differences?
How do I lauch my test website using code from qtp in different environmet, uat and PPTE?
Object repositories types, which and when to use?
If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?
What are the different types of recovery operation?