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 setValue fire change event?

nafgnafg Members
edited November -1 in Sahi - Open Source
Hi, I just started using Sahi. I decided to use the Java client (actually from Scala).
My webapp has a text input with a change event handler that makes an ajax call to update the browser. How do I trigger it? Normally I would type something in the text field and hit Enter or Tab.
Thanks.

Comments

  • You can trigger the return key from a textbox by using _keyPress() like so...

    _setValue(_textbox("searchBox"), "I Like Eggs");
    _keyPress(_textbox("searchBox"), [13,13]); // return key...

    B
  • Hi nafg,
    You can use the API _blur(el) to perform a focusout event on it.
    Regards.
Sign In or Register to comment.