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

86 Views Asked by At

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(). )

1

There are 1 best solutions below

0
Ray On

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