18 January 2026:


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 [enter] in Safari doesn't work

JirkaJirka Members
edited November -1 in Sahi - Open Source
Hi there,

I would like to use following command in Safari browser to simulate hitting enter:

_keyPress(_textbox("_afrFilterpt1_afr_content_afr_r1_afr_0_afr_pt1_afr_t1_afr_c7"),[13,13]);

This works well in IE and FF for me, but not in Safari4. I have tried to replace the [13,13] with regular character and that worked fine. According to specification, the keyCode=13 should work in Safari. Is there any workaround for this?

Thanks

OS WinXP SP3
Sahi (Build: 2011-07-19)
Sign In or Register to comment.