Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is Window Test Object
#1
Not Solved
I have a scenario where I am handling IE exception messages from webpage using a function call in a recovery scenario. Can somebody please clarify the following in the function

Code:
Function Recovery_LoginProxy(Object)

'Get the handle of the window
HwndPwdWindow = Object.GetROProperty("hwnd")

'Get the window test object for the same
Set pwdWindow = Window("hwnd:=" & HwndPwdWindow)

pwdWindow.WinButton("text:=OK").click

What is window test object above? I see that if I use Object.Winbutton("text:=OK").click, QTP does not click the Ok button in the dialog. But when I get the Window test object , I get QTP to click on the OK button in the dialog with the statement pwdWindow.WinButton("text:=OK").click. What is pwdWindow object above? Why I pass the dialog handle in to the object. What is happening in the above two lines of code? Can somebody please explain?

Regards
Srinivas
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Object Spy window is not getting hidden Neetha 2 2,925 08-28-2015, 01:27 PM
Last Post: balak89
  Is it possible to call Java window and Power Builder Window in 1 Action sbkhbk 0 2,527 06-05-2014, 08:18 PM
Last Post: sbkhbk
  Can we access a table element in Script at runtime without a corr. test object? sepgs2004 1 3,036 10-14-2013, 07:05 PM
Last Post: anil2u
  Browser object recognized as "Window" in google chrome version 24 pradeep singh 6 10,958 08-08-2013, 03:46 PM
Last Post: Kannan R
  qtp 11 not recording window within a window kp_usa 0 2,350 12-19-2012, 10:52 PM
Last Post: kp_usa

Forum Jump:


Users browsing this thread: 1 Guest(s)