nonopolarity
nonopolarity

Reputation: 151036

Using magellan-nightwatch, is there a way to assert some element is hidden / displayed?

waitForElementPresent or waitForElementNotPresent probably won't work if the element is not showing on the screen by one of display: none, visible: hidden or opacity: 0.

(it should be similar to jasmine-jquery's expecting an element toBeHidden(). )

Upvotes: 0

Views: 81

Answers (1)

Ray
Ray

Reputation: 1676

use .waitForElementVisible or .waitForElementNotVisible to see if it is displayed or hidden

Upvotes: 1

Related Questions