go-rod / rod

A Chrome DevTools Protocol driver for web automation and scraping.

Home Page:https://go-rod.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

能否添加一个打开页面后强制等待的方法

wAnFen1017 opened this issue · comments

Rod Version: v0.0.0

在页面未完全加载完成时这个方法尤为重要,可以避免定位到空值。
类似于playwright中的page.wait_for_timeout()
我尝试了Sleeper,但是并没有像我预期中等待。我现在直接使用time.Sleep(),我不确定在线程中是否安全。

Please add a valid Rod Version: v0.0.0 to your issue. Current version is v0.114.4

generated by check-issue

MustWaitStable

非常感谢!