I want to know how to execute the descriptive programming in
qtp for the webedit object which does not contain attached
text property. but i have checked it with name and html id
property. Even though it is not executing. it is giving
error in object's physical description.
Answer Posted / denis parker
Set oDesc = Description.Create()
oDesc("micclass").Value = "WebEdit"
oDesc("name").Value = "YYY"
oDesc("html id").Value = "14A"
'Retrieve all WebEdit objects in this page
Set EditCollection = Browser("B").Page("B").ChildObjects(oDesc)
NumberOfEdits = EditCollection.Count
'Search for a specific WebEdit object and set its value
For i = 0 To NumberOfEdits - 1
EditCollection(i).Set "AAAA"
Next
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can you brief the hurdles you faced during Automation testing?
What are the technologies supported by qtp?
How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined
Can any one tell me how to write a script for selecting open option in File menu of A word document.here you have to add objects to OR.try like that and give me the ans.i asked this question to so many but no one knows.if any one know the answer plz let me know
Both static and dynamic arrays are handled by the vb script. Is it true?
Which advantages helping QTP to hold the position of "Market Leader" for such a long period?
Does Low-level recording capture mouse movements?
please give me the code for doing retesting of gmail login page using functions so the function has to give the value
What is the syntax for how to call one script from another?
How can I import environment from a file on disk?
How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?
Explain how you can delete excel file in qtp?
Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.
In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail
How to use parameterization in qtp?