I have a SAVE button which is active only if I do some changes and then trying to save it. Otherwise its disabled.
This is the html for that button:
<button id="customize-site-save" class="button button--primary" data-ng-class="ButtonController.getCssClasses()" type="button" data-disable-on-call="" data-ng-disabled="PlatformCustomizeSiteController.customizeSiteForm.$pristine" data-ng-click="DisableOnCallController.actionEnabled() && (PlatformCustomizeSiteController.save())" translate-keep-content="true" disabled="disabled">
In this HTML, the disabled tag is only active when the button is disabled. How can I check that disabled is active or not?
This is my x path .//*[@id='customize-site-save']
for the button.
I just want to press the button if there is no disabled tag in the html.