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.
_keypress code for tab key
Hi guys, what is the syntax to simulate the press of the TAB key? I thought the char code was 9 but this is not working. I thought 69 was e but it keeps coming out with an uppercase e.
Here is what I am doing
_keyPress(_textbox("LineNarrative"), 8); // Backspace, no effect
_keyPress(_textbox("LineNarrative"), 69); // Should be lowercase 'e' but is uppercase
_keyPress(_textbox("LineNarrative"), 9); // Should be the TAB key but nothing happens
Here is what I am doing
_keyPress(_textbox("LineNarrative"), 8); // Backspace, no effect
_keyPress(_textbox("LineNarrative"), 69); // Should be lowercase 'e' but is uppercase
_keyPress(_textbox("LineNarrative"), 9); // Should be the TAB key but nothing happens
Comments
69 equals uppercase e, http://www.tcp-ip-info.de/tcp_ip_und_internet/ascii.htm
why backspace and tab don't work I can't tell.
Did you checked the other keypress threads?
http://sahi.co.in/forums/viewtopic.php?id=2952
Regards
Wormi