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

Hi, I have 2 dropdown listboxes called region and city/area. It needs to select one region(Santa Clara) and one city/Area (Sunnyvale).So I put this in the for loop and I am storing the Items in the variable called itemname. The regions value will get changed,so I used reg expression for this regions. This is my code Browser("MLSListings.com").Page("MLSListings.com").Link("» County/Area").Click Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Check CheckPoint("regions") ListSize=Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetTOProperty("items count") For i = 1 To ListSize-1 Itemname =Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetItem(i+1) Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Select Itemname ................. If I run the script,I am getting the following error, Cannot identify the specified item of the regions object. Confirm that the specified item is included in the object's item collection. Any Help? Thank you, Uma

0 Answers  


How to handle the errors without using recovery scenery?

3 Answers  


How to work with multiple browsers when opened in the window, write the script for it

2 Answers   Verizon,


how to main tain the Old scripts in qtp?

1 Answers   IBM,


How vl i prioritize the actions when i have 10 actions A1, A2, A3......A10. I want to run action as follows A1,A5,A6 and A10. How i can do it. Thanks in Advance to u.

7 Answers   IBM, Wipro,






For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?

0 Answers  


Hi, Can anyone tell me what type questions can be ashed in interview on QTP?

1 Answers  


If the web applicatoin takes navigation time above 2 hours to dispaly next Web page then how can we synchronize the QTP with Appilication Under Test

4 Answers   TCS,


how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??

0 Answers   ABC,


Hi, I have weblist which contains the data like Design change,admin edit and cost saving etc.. User doesn't know the values existed in weblist. Now the user has to select the right value from the list otherwise the test will fail. Pls help me "To select the correct value from the list"

1 Answers  


How to retrieve value (data) from notepad using QTP ?

5 Answers   Health Care,


how to choose the framework in qtp ? 2)when we go for the descriptive programming ?

2 Answers   Syntel,


Categories