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


Please Help Members By Posting Answers For Below Questions

Explain the benefits of quick test pro(qtp)?

649


desribe a situation where u faced a stressful situation and how did u cope with it

1501


What is action? How many types of actions are there in qtp?

714


tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?

1641


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?

3808






How do you perform Regreession Testing?

1582


Differences between quicktest professional (qtp) and winrunner?

741


What is the difference between a Function and Action in QTP?

700


Qtp has been installed on my pc but recently ON opening it is giving this error PLEASE REPLY IT IS URGENT IT WAS WORKKING FINE QTPRO.EX THE instruction at "0x7.. ...". referenced memory at "0000....The memory could not be read... Awaiting QTP XPERTS REPly URGENT

2166


How to automate a script in mainframes environment? I have the terminal emulator Add in. Describe in detail.

1790


can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?

1705


how to use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.

1404


How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.

1537


What is the difference between call to existing action and copy of an action?

683


How u will do versioning in QTP?

1533