Keypress without an object
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2023
05:53 AM
06-02-2023
05:53 AM
Keypress without an object
Is there a way to make Testcomplete press a key, without specifying an object? I want to press Enter on 3 different warning messages, that come one after another. The problem is that the first 2 warning messages have the object name Aliases.sdelki.dlgSdelki and the third is called Aliases.sdelki.dlg_4 and my while loop in my script can't find it. I'm trying to close unwanted popups/warnings, so other solutions are acceptable too.
Labels:
- Labels:
-
Desktop Testing
-
Script Tests
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2023
06:23 AM
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2023
08:23 AM
06-02-2023
08:23 AM
You can use Keys to simulate typing, but I'm not sure that will do what you want. Pressing a key without an object is like closing your eyes and hoping you tap the right key on the keyboard.
See if this helps
https://support.smartbear.com/testcomplete/docs/app-testing/web/common-tasks/popups-and-dialogs.html
