If you want to use ng-show
, you could try this:
element(by.Css("button[ng-show]")); // Get element with tag < button > and has ng-show attribute
or:
element(by.Css("button[ng-show*=flag]")); // Get element with tag < button > and has ng-show attribute which contains word flag