Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using DP to define windows
#3
Not Solved
Thank you rajpes for your reply.

I think I need to clarify further.
I use the followong code to define and set The Browser and Page Objects for my test as the first few lines for my test.

Code:
' Browser Description ====================
    Set ObjBrw = Nothing
    Set ObjBrw = Description.Create
    ObjBrw("name").Value = BrwHandle
'Page Description ====================
    Set objPge = Nothing
    Set ObjPge = Description.Create()
    ObjPge("title").value = PgeHandle
BrwHandle = Browser(ObjBrw).GetROProperty("name")
PgeHandle = Browser(ObjBrw).Page(ObjPge).GetROProperty("title")

If I move the last 2 lines ABOVE the Browser and Page Descriptions QTP displays an "unknown" error stepping thru the begining of the script.

If I leave the 2 lines where BELOW the descriptions [as written above] the 2 variables are correctly identified and everything in the scripts runs fine.

I use a single object repository that contains 2 objects [ Windows Internet Explorer & Internet Explorer_Server ] I captured using a low level recording.
This enables me to type random strings I generate into ajax grids on the page. This all works fine for 10 actions in the test.

What I am attempting to do is remove my dependence on the small repository that I am using to type random strings.
I wish to make the code transportable through a rather large set of modules within the application.
My initial thought was that if I followed what I have been using successfully I could do the same for these other two objects.
Hence I came up with the code I originally posted. I do have my web add-in loaded.

Does this clarify things - suggestion[s]?

Thank you - 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,287 03-09-2016, 09:08 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 5 Guest(s)