Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using DP to define windows
#1
Not Solved
I am new only 4 weeks into QTP. I have scripts that only use a 2 items in a repository.
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 Smile

mrerek
Reply


Messages In This Thread
Using DP to define windows - by mrerek - 07-15-2011, 01:36 AM
RE: Using DP to define windows - by rajpes - 07-15-2011, 09:30 AM
RE: Using DP to define windows - by mrerek - 07-16-2011, 12:51 AM
RE: Using DP to define windows - by rajpes - 07-16-2011, 11:54 AM
RE: Using DP to define windows - by mrerek - 07-18-2011, 10:22 PM
RE: Using DP to define windows - by rajpes - 07-19-2011, 11:39 AM
RE: Using DP to define windows - by mrerek - 07-21-2011, 12:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  What are different types of Function we define in UFT? amit25007 1 3,113 03-09-2016, 09:08 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)