I have 2 web pages; one page shows a popup message while the other page doesn't I have it set up as:
.expect(Selector('.classname).exists).notOk()
This is what I'm assuming: The first page should pass because the popup message with that class should not show (it passes; makes sense to me)
but the error comes in with the 2nd page where the popup message with that class that I'm selecting passes (Doesn't make sense to me because I'm writing to check to make sure it doesn't pop up/exist)
I have tried using .visible and both failed; the first page fails because it says that the classname doesn't exist. Well, that's good; that's what I want to have when the test passes but the 2nd page fails perfectly the way I want it to.
The classname that I'm trying to test with is an error message that pops up when the site is not working. Pretty much I want to check to if that message pops up; if it does fail the test; if it doesn't pass the test