Micro Focus QTP (UFT) Forums
DP For WebSite FRAME - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: DP For WebSite FRAME (/Thread-DP-For-WebSite-FRAME)



DP For WebSite FRAME - shriqtp - 06-11-2009

Hi Ankur,

Really stuck in following problem.....Please help

Following coding for Browser and Page are working fine.

Code:
var_1("...").value = "Browser"
var_1("....").value = "page"
i.e Browser("...").Page("...").sync 'working fine

But now i have a FRAME - WebElement before WinButton or WinEdit.

So i tried to write a DP for Frame as

Code:
Set var_3 = description.create
var_3("micclass").value = "Frame"
var_3("name").value = "nav"

and if i use it as

Code:
B(var_1).P(var_2).Frame(var_3).WinButton("XXX").Click

It is not working and showing Error for FRAME.

Can you please help me in resolving the FRAME Code?


Thanks
Shrinivas