I am using descriptive programming for my project.when QTP
deosn't identity or recognize a object by record and
playback method,is it possible to make QTP identify that
object using descriptive programming?
Note: The object doesn't have unique properties and same
properties used in Record and playback are only available,
no extra properties are defined.
Answer Posted / guest
As per my knowledge, QTP can recognize all type of objects
through descriptive programming. For that u need to create
object with the help one properties only i.e nothing
but "micClass". then set index property for remaining
object.
Example for Link object
=======================
set linkDesc = Description.Create()
linkDesc ("micClass").Value = "Link"
EditDesc("Index").Value = "0"
Browser("Browser Name").Page("Page Name").Link
(linkDesc ).Click
==========================
If u will change the index value, then it will click
accordingly.
I hope, it will resolve your problem.
Thanks,
-Akshaya-
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How do you open adobe acrobat file in QTP and do some testing on that file ?
What is action?
Can we create user defined functions in qtp?
Give me some real time point of way where exactly we can conduct audits?
In QTP can we feed the out of one browser(internet explorer) as an input to the another browser(mozilla firefox)? If yes explain how to do it with an example.
what is run action?
wht type of User defined functions or Java Releated functions Do we write in VB scripting
is there any addin for remedy user application
how can i call function (which has link with excell sheet at a remote location) within another function
Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link
What is throw Object?
Anybody plz give, How do you test aframe in a web page? If page cotain text message or Images, tables?
Why script error occur in between recording in qtp?
Can we record using all the modes in a single script? Explanation with example is appreciated
Write a script to verify font style and color of a windows object using descriptive programming