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

four browser are open same application i want to enter 3browser how?

3 Answers   IBM,


Why we load add-ins in qtp?

0 Answers  


HOW to invoke any recorded script in QTP with out using RECORD & PLAYBACK CONCEPT?

3 Answers   CTS,


Does QTP support flat files? If yes what are those?

2 Answers  


How do know the number of browsers opened?

0 Answers  






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?

3 Answers  


In qtp what type of data tables are used , name and list out them

1 Answers   Polaris,


What are the parameters provided by QTP?

3 Answers   Ordain Solutions,


does qtp runs on internet explorer 7.0

5 Answers   BeBo Technologies,


what is the difference between Automation object model(AOM) and test object model(TOM)

2 Answers   UHG,


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??

2 Answers  


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)

3 Answers  


Categories