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



Hi, I want to pass a value in to Link object. For ex: I have a link where in which contains t..

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

More QTP Interview Questions

how would you go for testing a web application like any jobsite?(using manual n qtp)..pls frnds its very urgent ..i need realtime answers...thanks in advance

2 Answers   Wipro,


How to supress warnings from the "Test results page"?

4 Answers  


how do you remove object repository at runtime and load object repository and verify it

2 Answers   Thomson Reuters,


What is the difference between Accessibility Checkpoint and Bitmap Checkpoint in QTP? Note: I have read it in QTP help but i dont want answer from that.......

1 Answers  


Wht is Smart Identification Mechanisam in QTP..Actually when do we this Technology means during Recording or running ....how is technology works. Anybody can expalin this .....Thanks in advacne

4 Answers   Siemens,






what are the qtp tester responsibilities?

3 Answers  


in my system object spy show the web application as a window based propeties ex:winedit like that and also not recording scripts also so what should i do

2 Answers  


I have enrolled for a QTP course which is a four weekend course.Do you think its a good way to start off learning this tool?What all do i need with me in order to become a pro at using this tool?

0 Answers   TCS,


how do you invoke the application through QTP?

1 Answers  


What is the concept of hooking in QTP?

1 Answers  


in how many ways we can write the user defined functions one way i know that i.e storing it in .vbs another way i does not know my friend said that .qtf or something but start with q letter can any buddy knows about this

3 Answers   DigiTech, Infotech,


Hi Friends...this is surendra..recently i joined automation team ...Please send me some documents regarding VB script ...and where can i learn VB script... This is My mail id: surendra.mamilla@gmail.com... please send to my mail.... Thanx in advance surendra.

1 Answers  


Categories