Error with QTP DP
Hello Friends,
I am new to DP in QTP. But I was able to recognize almost all the
objects in my application. Now I am getting the very common error as
follows :
Cannot find the "[ WebEdit ]" object's parent "[ Browser ]" (class
Browser). Verify that parent properties match an object currently
displayed in your application.
My code is as follows :
'for browser
Set tBrowser = Description. Create
tBrowser("micclass" ).value=" Browser"
'for page
Set tPage=Description. Create
tPage("micclass" ).value=" Page"
'for frame
Set tFrame=Description. Create
tFrame("html tag").value= "FRAME"
'For table
Set tWbTable=Descriptio n.Create
tWbTable("micclass" ).value=" WebTable"
tWbTable("name" ).value=" Apply Template"
tWbTable("name" ).RegularExpress ion = False
'Web edit
Set tWbEdit = Description. Create
tWbEdit("micclass" ).value=" WebEdit"
tWbEdit("name" ).value=" H_PROJ_REQUEST_ DESCR$0"
tWbEdit("name" ).RegularExpress ion = False
ID=Browser(tBrowser ).Page(tPage) .Frame(tFrame) .WebTable
(tWbTable).WebEdit( tWbEdit). GetROProperty( "value")
msgbox(ID)
Could someone help me with this.Any help in this regard would be
highly appreciated. I am trying to work this from last two days w/o
success.
Thanks