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

Hi Can u plz suggest who is the Best Faculty for Advanced QTP Scripting in Hyderabad ,plz suggest me..... or send me a replay to satheesh.goli@gmail.com, r make me a call 9866335752

1 Answers   AppLabs,


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

4 Answers  


If created one virtual object? Next time I changed the window position will it work?

0 Answers  


Explain calling sub procedure.

0 Answers  


How can i see test results in excel sheet ? test data not present in data table.

5 Answers  






what is the code in QTP to take screen shot?

4 Answers   TCS,


What are the different recording modes and how do they work?

0 Answers  


When u r running a script , if u get a popup window that describing that u have received a mail to your outlook application. so to avoid the interference of the popup window , which recovery scenario(popup,object state,application hang,system crash) would u use ?

4 Answers   Accenture,


can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process

0 Answers  


wt is playback facilityin qtp?

2 Answers   IBM,


Hi Friends, If you got one Bug , and you are insert that bug in bug tracking tool , and you need to attach SC's (screen shots) also. how to tae SC's , in your organization any separate tools available to take SC's. please provide Ans. its urgent... Thanx in advance

3 Answers  


1) How will you associate SOR in Runtime? ( u had written 10 lines of code from 11th line u want associate what code u will write) 2) How will close n number of browser expect only one which is has to test? ( First tell me how will you identify how many browser are opened ) what logic u will use? 3) In web Table u want to click on link ( Link Name Mohamed ) you dont know in which row and column that link is there. how wil u identify and click on that link.

2 Answers  


Categories