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

i did B.Tech cse and i secured 76%. instead of siting at home ... i would like to do some course. can u suggest me in this.

1 Answers  


Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John

0 Answers   IBM,


What types of testing comes under functional testing or in other word what will you test in functional testing?

3 Answers   Infosys,


What are the 3 main stages involved in testing with qtp?

0 Answers  


What are the disadvantages of Recovery Scenarios in QTP ?

3 Answers  






When you are running a batch test of 5 scripts and in 2nd script appln crashed, what hpns then?

4 Answers   BirlaSoft,


write script to read and write data from file ?

2 Answers   HealthAsyst,


What is the difference between functions and actions in QTP?

7 Answers   Verizon,


To retrive the test data which tool vl use and whats basis u vl write test data? its urgent

0 Answers   IBM,


Hoe to generate all numbers in between to numbers suppose all numbers in between 1 to 100 using vbscript give me code

2 Answers  


Write Descriptiv prg 4 login logn....txt bx password---txt bx ok---btn

2 Answers   Hewitt,


how are environment variables used in real time projects (testing)?what answer should be given about this in interview.need real time explanation breifly?thnx in advance.

2 Answers  


Categories