Depending on the state of the application, there are several selectors. Personally, since we say that I am developing a website with many buttons created with the same class (for styling, fonts, etc.), and it can be annoying when there can be more than one button on the same page by the same class, so you may want to give it a unique unique identifier or select the button text, which is easiest in my opinion:
element(by.buttonText('Save')).click();
But this is a matter of preference, Only sharing my opinion. Have a nice day!:)
source share