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

DIFFERENCE BETWEEN WR 8.2 & QTP 8.2? HOW TO INTEGRATE WITH SOME OTHER TOOLS?

1 Answers   CTS, Maveric,


Hi, I want to write the script for a webpage. But i didn't added the properties of the objects to the object repository. Without adding the object properties to the object repository, how to write the script. When i am writing the script, Let us say i typed as Browser (""). after selecting ".", if the object is added to the object repository it will display atomatically. But in my case it is not as i didn't added the object properties. How to proceed further in the above mentioned case to write the script manually. Pls let me know if you didn't understand the question.

3 Answers  


How can we encrypt the username using recording mode in login window? There is 2 encrypted types what are it

1 Answers   TCS,


What are the types of object repository?

0 Answers  


What is difference between shared and local object repository?

0 Answers  






i can done the project with QTP in that time i can say how many members in my team size?

0 Answers  


i have an array CAPGEMINI .....Here i need to check whether G is there or not ..how to do that and friends i have one big doubt that is whether it is array or string ,how we come to know that and where we consider that it's array ,where we consider that it's an string because when i want to find the length i have big doubt whether we need to use len function or ubound ... ans me for this TWO Questions any one please

7 Answers   Cap Gemini,


what are the cases in which we use XML and accessibility check points.

2 Answers  


In qtp, explain what is crypt object

0 Answers  


I have 2 Environment variable which holds int. I called into my test and addedup. but output is concatenating the values instead of Sum. Ex. Envi("a")= 10, Envi("b") = 20, c= Envi("a")+ Envi("b"). msgbox c ( Ans.1020). How to overcome this pblm?

3 Answers   TCS,


They asked by using qtp recording writing scripting

0 Answers   Wipro,


In application have 2 list box oppsite list box two edit box is there.so now through using DP how can we select 3 opption in first list box and 2box semect 4 opption.in edit box also we have to write 25 ,28.how can we do this

1 Answers  


Categories