Ask a Question

Keypress without an object

halovski
Occasional Contributor

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.

Capture22.PNG

2 REPLIES 2
rraghvani
Champion Level 2

See Keys Method

Marsha_R
Champion Level 2

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

cancel
Showing results for 
Search instead for 
Did you mean: