Forum Discussion

KellyWiegand's avatar
KellyWiegand
Occasional Contributor
2 years ago

The unexpected window setting doesn't work

Hi,

I've set the unexpectedWindow Event control in both Playback and script, but it keep pressing ESC instead of ENTER.

Did anyone meet this issue before?

 

 

 

1 Reply

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    As mentioned in OnUnexpectedWindow Event, "The OnUnexpectedWindow event does not work for windowless objects. That is, if an unexpected window is a windowless object (for example, a modal window implemented in a web application with a div element) the OnUnexpectedWindow event does not occur. For more information, see Handling Unexpected Windows."

     

    Also, if you've set Enter for unexpected window but it's simulating Esc, it could be a bug in TC. However, the function might work with a desktop application though!