Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Same Pop up in different windows
#1
Not Solved
Hi,

The issue I am facing is about a pop up having an OK button with same title in different windows, i.e. for ex:
Code:
Window("Window1").Dialog("My Dialog").WinButton("OK")
SwfWindow("AnotherWindow").Dialog("My Dialog").WinButton("OK")

I would like to write a function that would take two parameters as input, say WinType for Window/SwfWindow and another parameter as WinName for Window1/AnotherWindow and the operation to be performed in the function is .Click

Code:
Call Save ("SwfWindow","AnotherWindow")

Public Function Save(WinType, WinName)
   WinTypeName = WinType & "(" & chr(34) & WinName & chr(34) & ")"
' WinTypeName = SwfWindow("AnotherWindow")
   WinTypeName.Dialog("My Dialog").WinButton("OK").Click
End Function

The following Run Time Error is displayed:
Object Required: 'WinTypeName'

Appreciate any help on the above or on handling pop up across different windows.

Thank You for reading,
Vamseekk
Reply


Messages In This Thread
Same Pop up in different windows - by vamseekk - 03-25-2008, 02:59 PM
RE: Same Pop up in different windows - by Ankur - 04-01-2008, 12:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SAP GUI gets hanged while closing the Windows Pop Up kathirvelnagaraj 0 5,527 10-23-2015, 06:47 PM
Last Post: kathirvelnagaraj
Rolleyes QTP pop up window handling piyush8793 3 16,882 10-15-2015, 11:03 PM
Last Post: Venkateswarluponna
Exclamation Login & logout in Siebel and clicking pop-up button yuetling926 7 11,337 07-09-2014, 10:43 PM
Last Post: hhamilton
  select a date from pop-up calendar Dertjon 1 5,758 05-13-2014, 02:29 PM
Last Post: Ankur
  QTP not clicking on Yes button in the IE pop up dialog adityasrinivasb 2 9,625 09-29-2013, 11:01 PM
Last Post: prashantrawat101@gmail.com

Forum Jump:


Users browsing this thread: 1 Guest(s)