Protractor is failing when trying to click a button. Initially the button will be in disabled status (after sometime it will be enabled) and protractor thinks that the button is
There is a very much suitable Expected Condition - elementToBeClickable - it would wait for an element to be both visible and enabled:
var elm = element(by.id('paynow-info-btn')); var EC = protractor.ExpectedConditions; browser.wait(EC.elementToBeClickable(elm), 5000); elm.click();