且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何获得硒等待Ajax响应?

更新时间:2023-08-18 13:01:34

我会用

waitForElementPresent(locator)

这会等到元素是present在DOM。

This will wait until the element is present in the DOM.

如果你需要检查的元素是可见的,你可以用更好

If you need to check the element is visible, you may be better using

waitForElementHeight(locator)