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.

Button click problem

KalidasKalidas Members
edited November -1 in Sahi - Open Source
Hi Guys..

i am new to Sahi.. we work in QTP.. recently we are looking for alternate tool and i came across sahi... we feel it a very good tool for Automation...

while scripting we came across a problem where a button in our application with Value "Log In" is not getting clicked.

HTML Code below :

<a class="cta-but ctafl"><b><input type="submit" id="login-button" name="login-button" alt="Login Button" class="default-command-button" value="Log In"/></b></a>

I tried with the following commands.. but none of them worked

_click(_submit("Log In"));

_click(_button("Log In"));

_click(_submit(_byId("login-button")));

nothing is working...


Any suggestion would be helpful..

Thanks and regards,
Jake

Comments

  • narayannarayan Administrators
    It should have been

    _click(_submit("login-button"));

    Also try

    _click(_parentNode(_submit("login-button"), "A"));


    Regards,
    Narayan
Sign In or Register to comment.