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.

problem with enter "word"

ibsolutionibsolution Members
edited November -1 in Sahi - Open Source
hai,

i have a testing script. that have a value "enter" in my textbox. if sahi find "enter" word then sahi cannot find my other component

is this a BUG ?, is i change "enter" word with order word sahi will show the page correctly


Test script :
_highlight(_textbox("txtu"));
_setValue(_textbox("txtu"), "enter");
_highlight(_password("txtp"));
_highlight(_password("txtp"));
_highlight(_password("txtp"));
_highlight(_password("txtp"));
_highlight(_password("txtp"));
--Stopped Playback: FAILURE--


change the test script
_highlight(_textbox("txtu"));
_setValue(_textbox("txtu"), "comp");
_highlight(_password("txtp"));
_setValue(_password("txtp"), "comp");
_click(_submit("Sign In"));
--Stopped Playback: SUCCESS--


Regards,

Andy Susanto

Comments

  • Hi Andy,

    I just checked the word "enter" in my two line script. it works fine there. I can't say its a bug in sahi.
    heres' the code:
    _setValue(_textbox("q"), "enter");
    _click(_submit("Google Search"));
    
    I tested it on www.google.co.in

    Regards,
    Pankaj.
  • hai,

    i know the problem.

    the problem is i capture F3 key from javascript. After that i try to put a value from sahi controller and click set.

    when return that value using char(114). i check from window.event.keyCode.



    Regards,

    Andy Susanto
  • Hi,

    Hope you got some solution to your problem :)

    Regards,
    Pankaj.
  • hai,

    but my question is why sahi controller return char(114),

    if you type "enter" the keycode should always below 100

    Regards,

    Andy Susanto
  • hi,

    you are right. it should be 13. as the key code for Enter is 13.

    pankaj.
Sign In or Register to comment.