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.
NotNull/exists yes, but not Clickable
Hi all,
i've a little problem to an "assert" on a special case.
I've a button, it exists but it must be "NOT clickable".
I test that is present _assertNotNull(_button(24) or _assertExists(_button(24), but now i want to test that i cant click it : i didn't found the way to test it...
Can you tell me how to check this case please ?
Thx
Fabrice
i've a little problem to an "assert" on a special case.
I've a button, it exists but it must be "NOT clickable".
I test that is present _assertNotNull(_button(24) or _assertExists(_button(24), but now i want to test that i cant click it : i didn't found the way to test it...
Can you tell me how to check this case please ?
Thx
Fabrice
This discussion has been closed.
Comments
You can use :
_assertTrue(_button(24).disabled);
Regards
Sumitra
Hi Sumitra,
It works !!
SO thank you
One more question please ...
I'm not a developper, just a tester but to build my test it's so important to know the possibilities of syntaxe.
Where can i find a list of this type of soluce... a referencial of all possibilities
Thanks again
Fabrice
All the APIs that are listed here, helps you to get the possibilities of syntax.
http://sahi.co.in/w/all-apis
Regards
Sumitra
yes i ve found this global page but the sahi controller in APIs list gives me some other syntaxes like _assertNotContainsText(expected, el, s) by example that is not written in all-apis
and the syntaxe ".disabled" on the assertTrue is a syntaxe combinaison to which I had not thought because i did not know that is a possible syntaxe
Thanks again for my problem
Fabrice
When you CTRL+Hover on any element on a page, type dot(.) next to the accessor element displayed in the Accessor field. You can find all the possibilities.
Also, you can find all properties of an element by doing CTRL+Hover on any element and clicking on list properties.
Regards
Sumitra
type dot(.) next to the accessor element displayed in the Accessor field is exactly what i want
So thank you again : you change my life...
Fabrice
No problem...
Regards
Sumitra