For waiting purposes, I use this wait function:
browser.wait(function()
{
return browser.isElementPresent(by.repeater('recentName in recentNames').row(0));
}, 10000);
How can I wait until an element disappears from the page? I have a project that has many modal windows, and since the elements are always presented on the page, I have difficulties and failures are checked from time to time because I used the wrong elements to wait. For example, I have an element that disappears when the modal window closes after pressing Enter:
<div class="modal-backdrop in"></div>
source
share