Forum Discussion
svaze74
10 years agoContributor
Hi Joel,
I can think of an alternative to use KeyPressUp, KeyPressDown methods to simulate particular keys. This would be little lengthy but might avoid from triggering your functional validations.
The Keys method internally simulates the same thing like
For Ex-
TestObj.Keys("123")
Then it would be something like
TestObj.KeyPressDown("1")
TestObj.KeyPressUp("1")
TestObj.KeyPressDown("2")
TestObj.KeyPressUp("2")
TestObj.KeyPressDown("3")
TestObj.KeyPressUp("3")
But you don't have control on individual key press events.
If you individually use these methods, it may not trigger the validations.
Good luck.
I can think of an alternative to use KeyPressUp, KeyPressDown methods to simulate particular keys. This would be little lengthy but might avoid from triggering your functional validations.
The Keys method internally simulates the same thing like
For Ex-
TestObj.Keys("123")
Then it would be something like
TestObj.KeyPressDown("1")
TestObj.KeyPressUp("1")
TestObj.KeyPressDown("2")
TestObj.KeyPressUp("2")
TestObj.KeyPressDown("3")
TestObj.KeyPressUp("3")
But you don't have control on individual key press events.
If you individually use these methods, it may not trigger the validations.
Good luck.
Related Content
Recent Discussions
- 17 hours agoMW_Didata