When you try to click a button, the pusher does not work. Initially, the button will be turned off (after it is turned on), and the protractor thinks that the button is ready and the button is pressed and does not work.
So, I want the protractor script to wait for the button to be turned on. I tried below, but that didn't work. Can someone send the full code to wait for the activation of the item?
expect(browser.wait(function(){return browser.driver.isElementPresent(by.id('paynow-info-btn'))}, 10000));
source share