Quantcast
Channel: Micro Focus QTP (UFT) Forums - All Forums
Viewing all articles
Browse latest Browse all 1793

Customizing Descriptive Programming

$
0
0
Hi,

I have the below line of codes in DP

Set Dbrowser=description.Create
Dbrowser("micclass").value="Browser"
Dbrowser("title").value="Google"

Set Dpage=description.Create
Dpage("micclass").value="Page"
Dpage("title").value="Google"

Set DWebbutton = Desciption.create
DWebbutton("micclass").value="Webbutton"
DWebbutton("innertext")="Sign In"

Browser(Dbrowser).Page(Dpage).Webbutton(Dwebbutton).click

Can i replace "Browser(Dbrowser).Page(Dpage).Webbutton(Dwebbutton)" with a variable as mypage and use it as mypage.click?

If we cant use the above, can anyone let us know how to modify it ?

Thanks.

Viewing all articles
Browse latest Browse all 1793

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>