【发布时间】:2016-08-07 18:28:19
【问题描述】:
我正在尝试使用 waitForElementVisible,但即使元素在页面上也会超时。
browser.waitForElementVisible('.splash-buttons');
我在 IE11 Windows 8.1 上的 saucelabs IE 驱动程序上运行它。
【问题讨论】:
-
你能用 --verbose 标志发布一些日志输出吗?
我正在尝试使用 waitForElementVisible,但即使元素在页面上也会超时。
browser.waitForElementVisible('.splash-buttons');
我在 IE11 Windows 8.1 上的 saucelabs IE 驱动程序上运行它。
【问题讨论】:
你能试试这个吗:
browser.waitForElementPresent('.splash-buttons',30000,false,function(result){
if(result.value === true){
browser.waitForElementVisible('.splash-buttons');
} else {
browser.pause();
// there element is not there ,let debug here
}
});
【讨论】: