Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Explain the concept of object repository & how qtp recognizes objects?

1132


images are dynamically changes how to compare two images with out using the bitmap

2409


What is the registration process and examination fees?

1086


Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work

1918


On the website, the protocol has been changed https: to https what you will do? Tell me your approach?

998


Which recording modes need more memory?

1064


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

1756


Without using gui map editor we can recognize the application in winrunner ?

1059


What is checking bitmaps?

1019


Please help me by providing the License key for QTP 9.2, at guru_aarya@yahoo.co.in Best Regards Gururaj.B

3358


Can U Explain about QTP tool from older version to latest version also its differences?

1998


How do I lauch my test website using code from qtp in different environmet, uat and PPTE?

2040


Object repositories types, which and when to use?

1076


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?

2027


What are the different types of recovery operation?

1026