如果元素不是由display: none、visible: hidden或opacity: 0显示在屏幕上,则waitForElementPresent或waitForElementNotPresent可能无法工作。
(它应该类似于jasmine-jquery需要一个元素toBeHidden()。)
发布于 2017-08-18 16:17:14
使用.waitForElementVisible或.waitForElementNotVisible查看它是显示还是隐藏
https://stackoverflow.com/questions/45749781
复制相似问题