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 |
In my Script Firstly i have to parametrize the data then we import the data from c drive.suppose i have parametrize the Person name and company Name and i have enter one person name and one company name in the excel sheet now we import the sheet and the script is passed i want to ask one thing can we add more than one person name and more than one company name in the excel sheet suppose firstly we create person name "ADDy" and company nmae.'Wipro" and we set the current row in the script for this data and now we want run the script another set of data so how we can run the script with another set of data
Please clarify Automation and QTP both(names) are same or diff?
In Datatable having the data like this S.no Name Address 1 raj hyderabad 2 suresh Mumbai 3 shyam chennai 4 dev banglore i want to get the shyam row id & column id using scipting i.e 3,3
Explain about the test fusion report of quicktest professional?
what is web application and client server application.is there any difference ?
I have enrolled for a QTP course which is a four weekend course.Do you think its a good way to start off learning this tool?What all do i need with me in order to become a pro at using this tool?
Functions call by reference and call by value. i want the diff b/n these 2 and how will be the script for this?in which situation we use these 2..?pls explain me clearly
what are the difference between qtp8.2 to 9.0 surya
How can we do Data driven testing Using For loop in QTP?
actually how many hours per one day we will work on automation (qtp) in real time
how do close the task manager through QTP?
What is difference between WR and QTP?