The unexpected window setting doesn't work
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2023
11:48 PM
03-27-2023
11:48 PM
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?
Labels:
- Labels:
-
Test Run
-
Web Testing
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2023
12:58 AM
03-28-2023
12:58 AM
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!
