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

In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!

0 Answers  


What is 'sleep' in sync point?

0 Answers  


I have a tool for automation testing (eg:qtp).I have two functionality(A & B) to test.A is tested once in a year. B is tested everyday. At present i have the money and resource availability to automate only one functionality.Which one will u suggest and why?

2 Answers   TCS,


hai, i am doing QTP by own. So, i am confident in checkpts,synchronization, data driven test, recovery scenarioe manager etc. but actually i don't know how all these we wil implement while we r writting code manually. when we r doing practice, while recording code is automatically generated but in real time i heard that we have to write the script.But i don't know how it is? How to write descriptive prog.? plz. tel me what r the basic things we have to know? explain how to write descriptive prog.? explain me with an example pls.......

2 Answers   Vertex,


How to capture dynamic objects in qtp like mark up text

3 Answers  


there are having 10 checkboxes..how can i check only first 5 check boxes by using descriptive programing..

10 Answers   HealthAsyst,


what skills needed to be good test automation?

3 Answers  


what is the difference between seat and concerent licenses.

3 Answers   AppLabs, TCS,


what is Compile Module in QTP? what exactly it contains Functions or Actions?

1 Answers  


Explain the concept of how quicktest professional identifies object?

0 Answers  


How to find Operating system information using QTP script?

0 Answers  


How to execute a VBS file without using Execute File statement?

3 Answers   iGate,


Categories