I want to check if an element exists on the page(which shouldnt) and continue if it doesnt.
driver.wait(function() {
fieldBool = driver.isElementPresent(webdriver.By.id("someId"));
return fieldBool;
}, timeout).then(function(b) {
assert.equal(false, b, "message");
});
I want fieldBool to be false, but the test stops(timeout or no such element exists).
expect(element(by.css('#logout')).isPresent()).toBeTruthy();. You can review the item here: stackoverflow.com/questions/21245418/…toBeFalsy()?