I have the script like this: Browser("Login").Page
("Application").Frame("ScopeFrame").Link("DC3701737
(Active)").Click in which the value "DC3701737" will get
changed and i have to use the same value in so many places.
I got the value "DC3701737" in to a variable(Say x). Now if
i want to pass the variable in to link object .. how?

Browser("Login").Page("Application").Frame
("ScopeFrame").Link(x).Click

Is it possible to pass any variable into a link object ..
so, that the application will select that link
automatically?

If ur not able to understand, pls let me know.

Answers were Sorted based on User's Feedback



I have the script like this: Browser("Login").Page ("Application").Frame("..

Answer / raj

Please try this in Descriptive way.

Try this code to select the link....
Browser("Login").Page("Application").Frame
("ScopeFrame").Link("text:="&x).Click

Is This Answer Correct ?    7 Yes 0 No

I have the script like this: Browser("Login").Page ("Application").Frame("..

Answer / harish

Try this...

Browser("Login").Page("Application").Frame
("ScopeFrame").Link(x & "(Active)").Click

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More QTP Interview Questions

In an interview what r the questions asked in qtp related project? pls any answer this question?

3 Answers  


What are the recording modes and executing modes avialble in QTP?

3 Answers   Polaris,


what is the frame work your using in automation ?

4 Answers  


Do you support automated testing? Why?

0 Answers  


wt is automation framework? give explonation?

1 Answers   Mindlance,






What frame work ur using in QTP in ur current company?

7 Answers   Accenture,


Where to use Property Let, Property Get, Property Set in UFT

0 Answers  


What is the best institute in Ameerpet? If people think Ameerpet is the pride of hyd they need to go to Delhi/Gurgaon/noida you can find the difference.

3 Answers  


hi, FOR 3+ QTP INTERVIEW, FOR EXAMPLE WE PUT ONLINE BANKING SYSTEM PROJECT IN OUR RESUME, IN PROJECT MANAGER ROUND...WHAT R THE MAJOR QUESTIONS ARE ASKED IN P.M? PLS TELL ME ATLEAST 10 QUESTIONS?.....AND IF POSSIBLE POST ANSWERS ALSO....

0 Answers  


is it possible to add sheets to excel at runtime

1 Answers  


Suppose u run ur script today and it is working fine ,nobody has changed the setting and all.u r the owner for the script. But when tomorrow I ran the same script again it got failed and It didn't able to identify one object. Can you tell me what would be the reason for this

4 Answers   L&T,


What are the Features & Benefits of Quick Test Pro ?

1 Answers   Crea,


Categories