标签: nightwatch.js magellan magellan-nightwatch
waitForElementPresent
waitForElementNotPresent
display: none
visible: hidden或opacity: 0可能无法正常工作
visible: hidden
opacity: 0
(它应该类似于jasmine-jquery' s期待元素toBeHidden()。)
toBeHidden()
答案 0 :(得分:1)
使用.waitForElementVisible或.waitForElementNotVisible查看是否显示或隐藏
.waitForElementVisible
.waitForElementNotVisible