In protractor 2.0, I am checking in a expect() if one element is displayed. I expect a false, but the weird thing is that I get following error: NoSuchElementError: No element found using locator: By.id(“userForm”) My code is: I understand that I get that error because element is not longer on the page (is what I want to confirm), but