Forum Discussion
Hello,
The code given
<object>.Keys("[Hold]a[P2000][Release]"); => nothing
<object>.Keys("[Hold][Up][P2000][Release]"); => increase one unit
If I tried this :
Sys.Desktop.Keys("[Hold][Up]");
aqUtils.Delay(5000);
Sys.Desktop.Keys("[Up][Release]");
aqUtils.Delay(3000);
Sys.Desktop.Keys("[Hold][Up]");
I will have 3 unit increasement, one for each 'Keys' command lines
Thanks
What's the test case that you are trying to implement here?
- Alicya6194 years agoOccasional Contributor
When I'm pressing continuously on a key, I will expect a result like this : 'aaaaaaaaaaaaaaa' and not like that 'a'.
- Marsha_R4 years agoChampion Level 3
How many "up" presses are you looking for? The test case has to have some type of comparison.
- Alicya6194 years agoOccasional Contributor
It's not about a number it's about the possibility to do it, let's say :
As a user of my application, I want to have an increase of several digits when I'm continuously pressing on UP key. By opposition, when I'm pressing one time on UP key, I want an increase of one and only one digit.
Do you have the solution ?
Thanks
Alicya