07-15-2011, 01:36 AM
I am new only 4 weeks into QTP. I have scripts that only use a 2 items in a repository.
They are:
The Window & WinObject objects. I use these so that I can insert randowm strings into ajax grids, copy them and do STRCompare.
I would like to use the Description.Create method I have used for all other objects I get ROProperties on. However What I have written fails.
Every other object that I have to identify in the script uses this approach and works correctly.
Am I a dummy or is there something I have failed to see?
Suggestions welcomed
mrerek
They are:
Code:
Window("Windows Internet Explorer").WinObject("Internet Explorer_Server").Type "This is a test"
The Window & WinObject objects. I use these so that I can insert randowm strings into ajax grids, copy them and do STRCompare.
I would like to use the Description.Create method I have used for all other objects I get ROProperties on. However What I have written fails.
Code:
Set IEwindow = Nothing
Set IEwindow = Description.Create
IEwindow("regexpwndclass").Value = ObjWindow
'=====
Set ObjWin = Nothing
Set ObjWin = Description.Create
IEwindow("regexpwndclass").Value = WinObj
'=====
ObjWindow = Window(IEwindow).GetROProperty("regexpwndclass")
WinObj = Window(IEwindow).WinObject(WinObj).GetROProperty("regexpwndclass")
Every other object that I have to identify in the script uses this approach and works correctly.
Am I a dummy or is there something I have failed to see?
Suggestions welcomed
mrerek