18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
using _keyPress
Hi All,
I just want to press CTRL+ALT+z at some time in the script.
How can I do it using _keyPress.
Thanks,
Prashanth NK
I just want to press CTRL+ALT+z at some time in the script.
How can I do it using _keyPress.
Thanks,
Prashanth NK
Comments
Try Regards,
Narayan
In our application, for listing a record we are using list button and at the same time we have an option to list using function key "F12".
when i used like this _keyPress(_onkeypress,"F12"); i got an error saying "_keyPress(_onkeypress,"F12");
TypeError: '_onkeypress' is undefined
No trace available
Click for browser script at Aug 4, 2010 12:43:26 PM
Java developers implemented F12 for listing with the help of frame work.
Please help on this
Regards
Vivek
[*]http://sahi.co.in/forums/viewtopic.php?id=1056
want to simulate pagedown[/*]
[*]http://sahi.co.in/forums/viewtopic.php?id=241
want to simulate pagedown[/*]
[*]http://sahi.co.in/forums/viewtopic.php?id=1700
want to simulate ALT+F4[/*]
[/list]
the related topics , sahi only simulate keypress on window object
For F12, try
_keyPress(yourElement, [123, 0]);
or
_keyPress(document.body, [123, 0]);
The second parameter is an array of [keyCode, charCode]. Key code for F12 on my laptop is 123.
You can check on your computer by using http://sahi.co.in/demo/eventSequence.htm
Regards,
Narayan
I want to select multiple values from a list. Normally we can do this by "Pressing CTRL key + selecting the values".
How can I do this using _Keypress?
Please help.
Regards,
Azra
Please look at http://sahi.co.in/w/_setselected for multi-selects.
Regards,
Narayan
It helps.