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

Answers were Sorted based on User's Feedback



I want different types of discriptive programming statments coded for different types of web-objec..

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

I want different types of discriptive programming statments coded for different types of web-objec..

Answer / ram.polavarapu

->static descriptive scripting
->dynamic scripting
static scripting
------- --------
browser("creation time:=0").page("micclass:=page").webedit
("text:=").set"vgdgv"


dynamic scripting
-------- ---------
dim e
set e=descriptive.create
e("micclass").value="WebEdit"
set a=browser("").page("").childobjects(e)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" ar = Window("Flight Reservation").WinComboBox("Fly From:").GetContent your actual value is : that shows data in combo box how can u test the both data is correct or not by using split function

1 Answers   FIS,


How can we QTP Scripts in xml format? is there any way to do so?

2 Answers   Apex,


Explain in brief about the quicktest professional automation object model?

0 Answers  


hi Sudhananda reddy, in my resume, i written as , I Am working as a Test Engineer for xyz company. IS IT RIGHT OR WRONG? WHAT IS THE ACTUAL meaning of "IN XYZ COMPANY", "FOR XYZ COMPANY", "WITH XYZ COMPANY".

2 Answers  


Can any body tell me what is the method to connect the remote desk top throw QTP 9.2 version?

1 Answers  






How to get line numbers in your editor in expert view?

1 Answers  


When and why do you use "OPTION EXPLICIT" in VB Script. Is there any online help or something to learn the script for Beginners?

6 Answers  


If already everything is tested using White-Box testing, then what is the need of using Black box testing?

3 Answers  


How many add-ins comes by default with quicktest professional (qtp)?

0 Answers  


What issues come up in test automation, and how do you manage them?

0 Answers  


how to open Excel sheet & write in it & save it?

1 Answers   InTech,


Have you done batch testing in qtp? If yes how you are doing?

0 Answers  


Categories