cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to SPY an IE popup

VincentWatkins
Level 3
I am building a process for my team using Blue Prism. For one of the internal web application processes that I am trying to automate, I am presented with a popup from IE. The popup is simply an "OK" or "Cancel" button option asking if I am sure that I want to save the changes I am making. For some reason I am not able to SPY the elements on the popup and am only identifying the identifiable items from the original page. Can anyone step me through how to work around this?

------------------------------
-Vincent Watkins
------------------------------
3 REPLIES 3

ewilson
Staff
Staff
Hi Vincent,

Have you tried changing the Spy mode specifically for that Window? Perhaps you could spy it in Win32 mode?

Cheers,

------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------

sumire
Level 8

Hi Vincent,

Do you know how to manipulate IE popup by VBA?

If you know, the operation method using VBO is similar to the operation method using VBA.

this is VBA sample code:

Private  Declare PtrSafe  Function PostMessage  Lib  "user32"  Alias  "PostMessageA" (ByVal hwnd  As LongPtr,  ByVal wMsg  As  Long,  ByVal wParam  As LongPtr,  ByVal lParam  As LongPtr)  As  Long
Declare PtrSafe  Function FindWindow  Lib  "User32.dll"  Alias  "FindWindowA" (ByVal lpClassName  As  String,  ByVal lpWindowName  As  String)  As  Long

Sub ClickPopup()

     Dim hwnd  As  Long
    hwnd = FindWindow("#32770",  "Message from webpage")

     If hwnd <>  0  Then
        PostMessage hwnd, &H111&, vbOK,  0
     End  If

End  Sub


- create another VBO for popup
- spy popup in the same way as the parent IE window
- create attach action for popup
   when attach popup,
   - set "1" to "Child Index"
   - set "Message from webpage" to "Window Title"

Then you spy OK or Cancel button in IE popup, "Parent Class Name" is "#32770".
If you create VBO for popup in this way, it can be used for other IE windows, as they do not depend on what the IE's parent window is.

hope this suggestion helps you




------------------------------
Mitsuko
Asia/Tokyo
------------------------------
------------------------------
Mitsuko
Asia/Tokyo
------------------------------

HI Mitsuko san

I had the same issue.
Thanks to your advice , I managed to spy IE popup.

Thank you so much.

------------------------------
-----------------------------
SCSK corporation
BluePrism Developer
Bazarsuren Odbileg
Asia/Tokyo
------------------------------
------------------------------
----------------------------- SCSK corporation BluePrism Developer Bazarsuren Odbileg Asia/Tokyo ------------------------------