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
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 |
Answer / harish
Try this...
Browser("Login").Page("Application").Frame
("ScopeFrame").Link(x & "(Active)").Click
Is This Answer Correct ? | 2 Yes | 2 No |
QTP in mumbai
How to retrieve data from application objects?
How to convert QTP's ObjectRepository.mdb file to xml file
Tell me about qtp?
what type of scripts are asked in qtp?
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
what is the use of descripting programming?
Pls explain me the difference between ........ Description.Create and CreateObject
How can we disable smart identification at the time of recording? Ideally, smart identification should be enabled only at the run-time.
write is the code for regular expression in QTP
What is the difference between local and shared object repository in qtp?
Explain the check points in QTP?