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

Can you expect major bugs in Net banking Application?

1 Answers  


Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji

0 Answers   TCS,


Why divide a test into three action calls?

1 Answers  


1.In VB Script 100 lines Script. How can check the Syntax errors? 2. Write a VB Script for X = India/Srilanka/Australia/England/South Africa.I need the Output Country wise? [ 1st Msgbox India , 2nd Msgbox Srilanka] ---- 3. How can Choose these test cases to be automated?

5 Answers   HP,


What is keyword driven testing..what is the use of this in Automated testing

2 Answers   IBM,






Hi, is it possible for recording shortcut key during record session? The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.

0 Answers  


in a web page How to check and display a particular word from a paragraph?

0 Answers  


what are the difference ways of parameterising?

1 Answers  


when we open flight reservation.at that time where we found synchronization point() and wait function().i m confused .i want this answer.

1 Answers  


Hi, I have 50 test cases for automation, Based on which criteria we can decide for these test cases we have to use Descriptive programming and remaining for general coding? Thanks In Advance..Kavitha

2 Answers  


how can we compare descriptive programing with a regular expression

0 Answers  


What is the life cycle of QTP? Pls Give me Exact answer?

6 Answers   Google,


Categories