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.
Checkbox
Hi,
My issue is that I want to uncheck the checkbox who is already checked using _click(_uncheck("element")); but unfortunately it get failed. Please let me know how can i uncheck that checkbox ?
My issue is that I want to uncheck the checkbox who is already checked using _click(_uncheck("element")); but unfortunately it get failed. Please let me know how can i uncheck that checkbox ?
Comments
_check(_checkbox("element")); // will check the check box
_click(_checkbox("element"));// will toggle checked state
You can also use:
_uncheck(checkBoxElement) ; // Unchecks the given checkbox. If already unchecked, this API does not do anything.
Regards
Sumitra
Check , uncheck & click does not work for checkbox.
_uncheck(_checkbox("optionAll"));
_check(_checkbox("optionAll"));
_click(_checkbox("optionAll"));
I am using Sahi OS v35 on Windows 7 and Chrome.