更新时间: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)