I have online text editor page. There are two buttons: "Save" and "Close".
"Save" - is clickable, when changes are not saved:
<button class="btn save-btn" title="Save content">Save</button>
"Save" - is not clickable, when there are no changes:
<button class="btn save-btn" title="Save content" disabled="">Save</button>
Close button is always clickable.
I need to have following test:
- Click on Save
- Wait until changes are saved (Save button is not clickable)
- Click Close
How to check, whether "Save" button is not clickable?