18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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
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
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
_click(_submit("login-button"));
Also try
_click(_parentNode(_submit("login-button"), "A"));
Regards,
Narayan