I try to use wait() method instead sleep(), but it isn\'t working. I had code:
browser.actions().click(filter_field).perform(); browser.sleep(3000); if (b
You need to handle the wait timeout error:
browser.wait(EC.presenceOf(balloon_warning), 3000).then(function () { // success handler }, function (error) { expect(true).toBe(false); });