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.

Answers were Sorted based on User's Feedback



I want to know how to execute the descriptive programming in qtp for the webedit object which does ..

Answer / 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

I want to know how to execute the descriptive programming in qtp for the webedit object which does ..

Answer / rkreddy

Set desc=description.Create
desc("mic class").value="webedit"
browser("name:=book store").page("title:=book
store").webedit(desc).Set"india"
try it....

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

How do you do batch testing in QTP, if so explain?

2 Answers  


How Can I find the least value in a bunch of variables using qtp.. E.g.:- A = 210, B = 212, C = 60, D = 111 I don’t want to write bunch of lines for this…. Is there a way to get the result in one line…..

0 Answers  


How you can decide which type of object repository you have to use?

0 Answers  


how qtp identifies objects of application.

5 Answers   Intel,


how can we handle exceptional handling in qtp

6 Answers   NIIT,






1) 100 test boxes there in application. how to click 100 test boxes using vb script? 2) 100 objects there in web page,how we will store that 100 objects repostries?

3 Answers   ANZ,


Explain about Standard output value, Text output value, database o/p value, Xml O/p value, Xm o/p Value

1 Answers   TCS,


Do we get any issues if we run the test script on differentbrowsers?what are the options we need to set in QTP?

3 Answers   CTS,


What is quicktest professional?

0 Answers  


Hi Sudhananda, plz send me the QTP framework with any diagram and PPTS . I want to switch to automatio, I done QTP from professional person, but he does not give me his knowledge properly. so pls help me Thaks send me on following address mirajkar.akash@gmail.com

0 Answers   TechSoft,


How to fetch web elements count from Google Page which contains letter "e"

4 Answers  


What is FRAME WORK? How many Frameworks can QTP supports?

4 Answers  


Categories