How to create a run time propertyfor an object?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
How to make Non reusable actions into reusable action? is that feature available in QTP
How to watch currnet value of an object like OK buton or edit box with "Agent Name:" label. in watch expression tab?
How do we call Library Files(.vbs) in the Test Script Thanks in Advance...
What is a Patch in QTP?
does test plan is in test strategy or test strategy is in test plan
On the website, the protocol has been changed https: to https what you will do? Tell me your approach?
how to capture objects of remote deskop as it is capturing only window.
write a qtp script to verify that the business price is twice the economy price in flight reservation window
What are the Disadvantages of shared object repository?
What are the two types of repositories available, explain them?
.how will you load the object during runtime
What is the difference between wait and synchronization point?