I want different types of discriptive programming statments
coded for different types of web-objects?Give syntax and
example?

Answer Posted / srikanth

We can do 2types.
i)By creating properites through Description.create
ii) By passing properties through string arguments

i) Dim obj_desc
set obj_desc= Description.create()
obj_desc("class").value="webedit"
obj_desc("name").value="userid"
obj_desc("html tag").value= "input"
obj_desc("visible").value="True"
Browser("browser").Page("page").Webedit
("userid").set "srikanth"

ii) Browser("name:=Welcome to Gmail").Page("name:=Welcome
to Gmail").WebEdit("attachedText:=Userid").set "srikanth"

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?

1495


On the website, the protocol has been changed https: to https what you will do? Tell me your approach?

569


What are the recording modes in qtp?

574


Is it possible to change the values of analog recording?

562


what is ODC and GDC?

7327






How does qtp identify gui object?

582


What are the different attributes used with regular expression?

539


can the activities of test case design be automated?

1443


Why is Client side image is preferred over server side image?

1433


What is the extension of the recovery scenario file in qtp?

532


Which is the best QTP training institute in Delhi/NCR region and what is the approximate fee for QTP course (Basics and Advanced)

1369


Hi, I am using OutputCheckPoint and I am storing the value in the data table. The stored value for column:bedroom:"Bed:4" The another value for column:bathroom:"Bath:2 Full,1 Partial" I need only the no 4 from the first column. I need only the no 2,1 from the second column. I used split array,but it also show array(0) has the value"bed:4" ..... Even though I highlight only 4,It is seleting the full value "bed 4".How can I get only the nos Thank you Uma

1293


What is checkpoints for qtp?

522


Diff b/w test scenario's and test Procedures?

1618


How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)

1727