Puppeteer: remove attribute

Viewed 618
<div>
  <button class="button--primary button--filled" disabled="disabled" data-action="publish">
   <span class="ButtonText">Save and publish
   </span>
  </button>
</div>

I have the above button element on browser and I couldn't enable it unless I remove the disabled="disabled" attribute. Setting another value didn't help.

Is there a way to remove the attribute completely? (Using page.$eval() is preferable)

0 Answers
Related