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 |
suppose im having a string wipro123xyz i need to get the value 123 only from the string today 123 will be in the middle from tommorow it will be changing to front or back how to get the no if it changes continously?
what is Function Definition Generator? can any one explain me in details?
several browsers opened. write QTP script to close all browsers except gmail.
how we can take data in the username field text box into variable in web application explain with example and give all functions to get data into variables
How to run scripts 1,29,3,5,7,2 scripts using test batch runner in QTP.... Ie...I wanted to run scripts not in an order 1,2,3,4,5...like that How it is possible using test batch runner... I dont want hardcoded script
Explain the difference between check point and output value?
What is difference between WR and QTP?
Hi, I want to write the script for a webpage. But i didn't added the properties of the objects to the object repository. Without adding the object properties to the object repository, how to write the script. When i am writing the script, Let us say i typed as Browser (""). after selecting ".", if the object is added to the object repository it will display atomatically. But in my case it is not as i didn't added the object properties. How to proceed further in the above mentioned case to write the script manually. Pls let me know if you didn't understand the question.
How to attach a file to TD?
what is object and child object.. explain ..if possible give some example for better understanding ..
How to make arguments optional in a function?
I have thousands of links are there, i want check each and every funtionality of link by using descriptive programme, retrive link name from excelsheet then operate in application. Please anybody send me model script