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

QTP in mumbai

0 Answers  


How to retrieve data from application objects?

1 Answers  


How to convert QTP's ObjectRepository.mdb file to xml file

1 Answers  


Tell me about qtp?

0 Answers  


what type of scripts are asked in qtp?

2 Answers  






Can you write User defined function for WebEdit ? Note1: This function can be used for all web edits in all pages Note2: Don't use Child objects method

1 Answers   IBM,


what is the use of descripting programming?

8 Answers   Ordain Solutions,


Pls explain me the difference between ........ Description.Create and CreateObject

5 Answers  


How can we disable smart identification at the time of recording? Ideally, smart identification should be enabled only at the run-time.

3 Answers  


write is the code for regular expression in QTP

2 Answers   IBM, Infosys,


What is the difference between local and shared object repository in qtp?

0 Answers  


Explain the check points in QTP?

2 Answers  


Categories