2017-04-13 46 views

回答

0

試試這個:

browser.wait(function() { 
    i++; 
    return $('.popup-loading p').getText().then(function(content) { 
     if (content != "the init value") { 
      console.log("Value changed"); 
      return true; 
     } else { 
      _retryOnErr(); 
     } 
    }, _retryOnErr); 
}, 3600 * 1000, 'Error waiting for element present: '). 
then(function(waitRetValue) { 
    return waitRetValue; 
}, function(err) { 
    throw err + ' after ' + i + ' iterations.'; 
}); 
+0

我有一個模型窗口,您可以在其中添加或刪除客人,並根據該客人詳細信息與價格獲取總價格細節。如何根據用戶在模型窗口中選擇的訪客數量驗證訪客詳細信息。 – shankarbkp

相關問題