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

Can we directly start working with QTP without any knowledge on WinRunner? (After getting trsining on QTP)

1 Answers  


Explain different type of event trigger option.

0 Answers  


how can i impliment error handling in QTP?

5 Answers   Ordain Solutions,


What are the methods used in UFT to handle exceptions or run-time errors?

0 Answers  


what is the use of Text output value in Qtp?

2 Answers  






Is there any MS Access addin in QTP?

7 Answers  


How to test login module with different username and password by using data driven testing in QTP?

0 Answers   HCL,


How do you perform testing on web based application using qtp 9.2?

1 Answers  


1.how can we report the QTP test result in a different excel sheet 2.

3 Answers   Aurigo,


I want to learn QTP Online, where can I get quality training?

15 Answers   CSC,


what is frame work?

2 Answers   Wipro,


what is a file system object in QTP

7 Answers  


Categories