I've noticed a strange behaviour regarding "Key Shortcut" and "Key Sequence": it seems to be that keystrokes would be send to the next dialog too.
First of all some information:
Our application needs a login at the start. The login can be confirmed by mouse (clicking OK-button) or by key (pressing Enter when focus is in password). After the login an info will be displayed which also can be confirmed by mouse or key. Now the main programme will be displayed.
We redirected the Enter-key to the Tab-Key so it is equal if you press Tab or Enter.
If you take a look on Difference between "Key Sequence" and "Key Shortcut"?: Now Key Shortcut also seems to send the keystroke to the next dialog.
Testing:
So I designed a simple test-app to reproduce this behaviour.
Both, Ranorex and I manually, executed the test successfully when we used the mouse for confirming the login. But when we used keystrokes Ranorex failed because the confirmation of the login by using the Enter-key also confirmed the following information. Looked strange for me.
After this I changed the keystroke from Enter to Tab so the focus in the information dialog was not on the OK-button, as it should be, the focus was on the Cancel-button like it would be if the Tab-Key was pressed in the information dialog.
Maybe I use the false technics?
Steps to reproduce:
I attached an archive including the Test-Programme and Ranorex-files. The test should be executed like this:
- * Start Programme (located in the subfolder "Programm" in the archive)
* Press "Enter" to set focus on password
* Press "Enter" to confirm login
* Press "Enter" to confirm information
* Close application
We are using Ranorex 5.4.4 and Win7 SP1.
Regards,
Thomas.