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

Hi we are running tests remotely from quality center and pushing tests into qtp boxes remotely, and it does execution but while uploading results back into quality center it hangs in qtp box.If any one come across similar problem, please send me details how to handle this. Thanks kris

0 Answers  


Diff b/w test scenario's and test Procedures?

0 Answers  


How to retrieve particular cell data in excel sheet ?without importing method.

3 Answers  


What type of error u will get if u have not installed java add in in java project? what is the error name ?

1 Answers   Verizon,


What is the basic concept of quicktest professional?

0 Answers  


How to capture the tooltip of webelement,if there are two values displayed in tooltip of webelement?

1 Answers  


Please explain me i am using QTP 9.5 ,i am creating re usable scripts,i have to pass data from one local sheet to another local sheet.for example i am creating emploee information, (data is in action 2 local sheet),In this data table emplyeee number will get,i have to pass employee number to another reusable script search data (action2 local data sheet)

2 Answers  


Through array we can execute the testcase how ? give me example

0 Answers   TCS,


can a Function return more than one value..??? if so please give me the code for that.

5 Answers   DST Global Solutions,


How you will rate urself in QTP in the range of 0 to 5

0 Answers   Genpact,


Plz suggest me a good training institute in Mumbai/hyderabad for QTP…. Plz advice thank u

29 Answers   IBM,


how can we group that these test cases only should be automated and in which order you execute that test cases?

2 Answers   BSL,


Categories