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


Please Help Members By Posting Answers For Below Questions

How is test case write?

576


How to use actions in qtp ?

589


Where to use function or action?

669


Your roles and responsibilities and daily tasks? (As automation tester)

2581


What are the methods of the TextStream object that are used for reading from a text file?

1689






How to get the particular property value?

612


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?

1795


i can done the project with QTP in that time i can say how many members in my team size?

1372


what is command for executing files?

1517


Where we can use the synchronization?

571


What is different command used in command Prompt while using QTP?

1747


What is quicktest professional?

559


How can get count of list box?

635


Discuss the QTP Environment?

630


how to evalute defects in QTP script?

1490