BPT - get and use current browser and page

Dear HP Experts,

In order to test a web application I stored the objects (browsers, pages, links, ect) in repository and created a BPT containing few business components. Object (browser/page/link) name is parameterized at component level.

I would like to use the current browser and current page for all my components instead of passing every time (at test level) the browser name and page name. Can you find any solution to this?

 

P.S. : Browser("creationtime:=0").Page("micclass:=Page").Link("link_name").Click

will not work since the link is stored in repository under a hierarchy that looks like : Browser("br_name")->Page("pg_name")->Link("link_name") and obviously the test will look for the whole hierarchy to click this specific link.

 

Many many thanks!

Alex