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.

Does Sahi have a function to simulate keyboard input (e.g. pressing 'enter')

danielallamdanielallam Members
edited April 2013 in Sahi - Open Source
I have a basic script that enters a user id and password and logs in.
When I run the script, I see Sahi successfully enter the values in the user id/password fields and Sahi logs that they have been entered.
However, the web page doesn't actually accept that the values have been entered. I think this is because the page has some scripting to mask the entered values with **** characters (when the Sahi script runs, I never see the masking chars - I do when I run the test manually).
To get around this, I was thinking I would get Sahi to simulate 'enter' or ' tab' to see if the value was really accepted.

If anyone has faced anything similar and solved it, please let me know.
thanks
Daniel

Answers

  • Hi

    if I recall right we have some _focus and _blur APIs. If the Javascript is triggered by some onChange event it may be triggered by _clicking some text (headlines or something) or _focus some other element

    regards
    wormi
Sign In or Register to comment.