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 |
four browser are open same application i want to enter 3browser how?
Why we load add-ins in qtp?
HOW to invoke any recorded script in QTP with out using RECORD & PLAYBACK CONCEPT?
Does QTP support flat files? If yes what are those?
How do know the number of browsers opened?
I need to know how to Automate a Username and Password for a Web-based product? I'm scripting 3 different types of surveys but each Survey requires a Username and Password which is always the same. I can I do this using QTP?
In qtp what type of data tables are used , name and list out them
What are the parameters provided by QTP?
does qtp runs on internet explorer 7.0
what is the difference between Automation object model(AOM) and test object model(TOM)
i'm using QTP 8.2. A person using QTP 9.0 sends me a QTP TestScript, same when i try to open , an error comes "unexpected file format". Why?? and how to resolve the problem??
how to get the data from a winedit box in vb scripting and store it in a variable if data contains "_"(i.e data is TEST_1)