Forum Discussion
rraghvani
Champion Level 3
Key press followed by a 5 second delay,
Obj.Keys("[F10]");
aqUtils.Delay(5000);
SubhraDas
4 months agoNew Contributor
That's not what I want . I want Keys function to know if it's getting "[F10]" and do stuff. I want to modify the Keys function i.e. override or extend aqObject / testObject
- rraghvani4 months agoChampion Level 3
If you want to override the method, search the internet for "how to override a JavaScript function", if using JavaScript.
I'm not sure if it's possible in the version of JavaScript, that TC uses.
You pass the constant value i.e. "[F10]" to the Keys method, which will then simulate the keystroke to the object. You can then proceed to perform other actions.
- SubhraDas4 months agoNew Contributor
What ? Before you reply again I want you to read my original question carefully . Don’t stress
Related Content
- 2 years ago
- 8 years ago