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 create a run time propertyfor an object?

Answers were Sorted based on User's Feedback



How to create a run time propertyfor an object?..

Answer / firoz basha shaik

for ex, suppose that we want to know what is the data in
the text box while the application is running?

FName = Browser("Browser").Page("Page").Webedit
("FirstName").GetROProperty("text")
msgbox FName

the runtime text which is present in FirstName field will
be stored in FName variable and can be seen using msgbox.

Is This Answer Correct ?    5 Yes 1 No

How to create a run time propertyfor an object?..

Answer / kiran1783

'The following example uses the SetTOProperty method to set
the

'html id of the WebFile object.



Browser("Fill-Out-Form").Page("Fill-Out-Form").WebFile
("name-of-files").SetTOProperty "html id", 4

Is This Answer Correct ?    3 Yes 2 No

How to create a run time propertyfor an object?..

Answer / ravi

Sorry kiran...
we can not set a property to an object in run time .
You can use GetROProperty(”outerText”) to get the outerText
of a object but there is no function like SetROProperty
tochange this property. But you can use
WebElement().object.outerText=”Something” to change the
property.

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More QTP Interview Questions

How to make Non reusable actions into reusable action? is that feature available in QTP

2 Answers   Ordain Solutions,


How to watch currnet value of an object like OK buton or edit box with "Agent Name:" label. in watch expression tab?

2 Answers   Cap Gemini,


How do we call Library Files(.vbs) in the Test Script Thanks in Advance...

6 Answers  


What is a Patch in QTP?

0 Answers  


does test plan is in test strategy or test strategy is in test plan

2 Answers   Tanla Solutions,


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

0 Answers  


how to capture objects of remote deskop as it is capturing only window.

1 Answers   Wipro,


write a qtp script to verify that the business price is twice the economy price in flight reservation window

1 Answers  


What are the Disadvantages of shared object repository?

0 Answers  


What are the two types of repositories available, explain them?

0 Answers  


.how will you load the object during runtime

2 Answers   TCS,


What is the difference between wait and synchronization point?

3 Answers  


Categories