【问题标题】:waitForElementVisible timesout even though element in therewaitForElementVisible 超时,即使元素在那里
【发布时间】:2016-08-07 18:28:19
【问题描述】:

我正在尝试使用 waitForElementVisible,但即使元素在页面上也会超时。

browser.waitForElementVisible('.splash-buttons');

我在 IE11 Windows 8.1 上的 saucelabs IE 驱动程序上运行它。

【问题讨论】:

  • 你能用 --verbose 标志发布一些日志输出吗?

标签: nightwatch.js saucelabs


【解决方案1】:

你能试试这个吗:

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     
       }
    });

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-01-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-11
    • 2021-06-18
    • 1970-01-01
    相关资源
    最近更新 更多