How can you write a script without using a GUI in QTP?

Showing Answers 1 - 1 of 1 Answers

Uday Kumar. A

  • Sep 13th, 2006
 

Yes, we can write scripts without Object repository by using Descriptive programming.

We can achieve this in two ways:

1. By creating properties collection object for the description, like

Dim ObjDesc

set ObjDesc=Description.create

ObjDesc("html tag")="INPUT"

ObjDesc("name")="Name of the object"

Browser("xxxx").page("xxxx").winEdit(ObjDesc).set "Uday Kumar"

2. By giving the description in the form of string arguments

Browser("xxxx").page("xxxx").winEdit("html tag:=INPUT,name=Login").set "Uday Kumar"

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions