Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用Helium来自动化网页。问题是我有时会得到一个LookupError,因为当 Helium 搜索某个元素时页面上尚未出现该元素。有没有办法等到元素存在?
LookupError
您可以使用wait_until(...). 例如:
wait_until(...)
wait_until(Button('Download').exists)