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.
Recording Double click events & Function keys
Hi,
I need to know how does Sahi records a double click event on a certain button or page having "onDblClick" event.
It just records a single click and stores the script and hence misses the dblClick action that was actually performed.
Similarly, events such as pressing "f7" etc. are not getting recorded ...
I need to know how does Sahi records a double click event on a certain button or page having "onDblClick" event.
It just records a single click and stores the script and hence misses the dblClick action that was actually performed.
Similarly, events such as pressing "f7" etc. are not getting recorded ...
Comments
The syntax is _doubleClick(element) instead of _click(element)
Pressing f7 won't be recorded. You could try _keyDown(element, 118); _keyUp(element, 118)
To check what various keyCodes and charCodes are, go to http://sahi.co.in/demo/eventSequence.htm and input your key in the textbox. The keyCode and charCode will be visible. Try either of them and see which ones work for you.
Regards,
Narayan