How to check if an HTML tag has an attribute of 'disabled' or not?
See original GitHub issue<material-button animated="true" class="btn btn-yes _ngcontent-EXCHANGE-57 _nghost-EXCHANGE-2" tabindex="0" role="button" aria-disabled="false" elevation="4"><div class="content _ngcontent-EXCHANGE-2">Save</div><material-ripple class="_ngcontent-EXCHANGE-2"><div class="__acx-ripple" style="top: -116px; left: -83px; transform: translate(-13px, 6px) scale(0.364962);"></div></material-ripple></material-button>
<material-button animated="true" class="btn btn-no _ngcontent-EXCHANGE-57 _nghost-EXCHANGE-2" tabindex="0" role="button" aria-disabled="false" elevation="4" disabled><div class="content _ngcontent-EXCHANGE-2">Save</div><material-ripple class="_ngcontent-EXCHANGE-2"><div class="__acx-ripple" style="top: -116px; left: -83px; transform: translate(-13px, 6px) scale(0.364962);"></div></material-ripple></material-button>
I want to click on .btn-no or .btn-yes class when the disabled attribute gets removed. How to do that?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:9 (2 by maintainers)
Top GitHub Comments
You can use
waitForSelector
:Thanks man 😃