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.
Answer Posted / 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 |
Post New Answer View All Answers
How is test case write?
How to use actions in qtp ?
Where to use function or action?
Your roles and responsibilities and daily tasks? (As automation tester)
What are the methods of the TextStream object that are used for reading from a text file?
How to get the particular property value?
What is the difference between QTP and WinRunner? Why do you choose only QTP for automation among remaing tools like Rational robot and silk test? Write the VBscript for any functionality in your project ? What is the cost of QTP ? If you entered into yahoo mail with your valid user name then you will get FOR EXAMPLE , " welcome to krishna " on the top of inbo page , how can you test it in QTP? What type of testing you can do, when we gave you 5 screens and how can you test that application? What type of framework you are using in your company and explain it?
i can done the project with QTP in that time i can say how many members in my team size?
what is command for executing files?
Where we can use the synchronization?
What is different command used in command Prompt while using QTP?
What is quicktest professional?
How can get count of list box?
Discuss the QTP Environment?
how to evalute defects in QTP script?