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.
Unable to perform _click(_Button("+"))
Hi
In my application, there is an object _button("+"). Sahi is able to identify the object using the controller and it could able to perform the action of click using the controller.
The scenario is, on clicking the "+" button a new row of data should be added.
In the controller window, Evaluation Expression field if the script
_click(_button("+"));
is provided and tested, it is performing correctly and a new row of line is added.
While playback the same line is used and it is not clicking the "+" button, but the result window shows the script is a success.
By using Sahi, it could able to identify the object and retrieve all the properties but no action is performed in the application while playback.
I even tried with the short cut key to add a new row '_click(_button("+"), "ALT");' it is also not working during playback.
I am using the Windows 7 Enterprise Edition, Sahi (Build: 2011-07-19) using IE 9.
Please provide the resolution at the earliest.
Thanks in advance
Subin
In my application, there is an object _button("+"). Sahi is able to identify the object using the controller and it could able to perform the action of click using the controller.
The scenario is, on clicking the "+" button a new row of data should be added.
In the controller window, Evaluation Expression field if the script
_click(_button("+"));
is provided and tested, it is performing correctly and a new row of line is added.
While playback the same line is used and it is not clicking the "+" button, but the result window shows the script is a success.
By using Sahi, it could able to identify the object and retrieve all the properties but no action is performed in the application while playback.
I even tried with the short cut key to add a new row '_click(_button("+"), "ALT");' it is also not working during playback.
I am using the Windows 7 Enterprise Edition, Sahi (Build: 2011-07-19) using IE 9.
Please provide the resolution at the earliest.
Thanks in advance
Subin
Comments
The + should not be a problem. Could you point us to your application or send us the HTML source of the button to support@sahi.co.in.
Additionally, can you also send us the script that executes this?
Regards
Sumitra
Thanks for the reply
The HTML code for the (+) sign is
<input type="button" class="submit_add" style="width:20px;" onclick="disableServiceLine(); addServiceLine()" accesskey="=" id="add" value="+" name="button" tabindex="41">
The code used to access the (+) sign is.
_click(_button("+"));
Could you try using:
_click(_button("add")); Check if this solves your issue.
Regards
Sumitra
Thanks for the reply.
I tired the following in the script. but the same is not clicking the button in the page.
_doubleClick(_button("+"));
_click(_button("submit_add"));
_click(_button("+"));
_click(_button("add"));
even tired with the short cut key for the same and still no result.
After executing the script it is showing the Message like --Stopped Playback: SUCCESS-- and in the result also the test is pass, but in the application not even a single time the button is clicked.