Hi,
I want to pass a value in to Link object.
For ex:
I have a link where in which contains the value
like "DC4463219(Active)".
Whenever i will execute the script this value "DC4463219
(Active)" will get changed.
I got the value DC4463219(Active) from the link and stored
that value in variable "ACTUAL".
If i want to select the same link again, while recording
the value DC4463219(Active) will be recorded in object
repository. So, that it will not work for the next cycle of
execution as the value will get changed everytime as i
mentioned above.
I want to pass that Acutal value in to link object. The
script is as follows:
Actual Script when recording:
Browser("Web Login").Page("Application").Frame
("ScopeFrame").Link(DC4463219(Active)".Click
But now instead of this DC4463219(Active) i want to pass a
variable where i have the same value.
I tried to execute the script
Browser("Web Login").Page("Application").Frame
("ScopeFrame").Link(Actual).Click
But it is displaying the error message as that the value
which we got from Actual is not existing in Object
repository. So,i made the link object as regular expression.
Even it is displaying the same message as mentioned above.
If you are not able to understand, feel free to contact me
with nbabu11@gmail.com
Answer Posted / tvs ramakrishna chowdary
hello balu ur problem get solved by regular expression
----------------------------------------------------------
1)Go to Object Repository
2)Select Link Object
3)In the object properties pane(right side of window)
4)select text property of link
5)in the value portion select the configure value button
6)change the constant value DC4463219(Active)
with .*(Active)
7)select the checkbox Regular expression
8)click ok
9)close object repository
now u run ur script...I am sure it will work fine...
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Explain the views in the QTP GUI?
How to find the length of the string in qtp?
How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.
Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ
What are the factors on which script execution time is dependent?
Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)
How you create new action in qtp?
How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.
Can any suggest me what is exposure testing?
What is a recovery scenario?
i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?
hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.
i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji
how to test load test and block box testing an a web based application pls give ans briefly
What is expert view in qtp?