Rod Version: v0.102.0
The code to demonstrate your question
package main
import (
"github.com/go-rod/rod"
"github.com/go-rod/rod/lib/defaults"
)
func main() {
defaults.Show = true
page := rod.New().MustConnect().NoDefaultDevice().MustPage("https://captcha.website")
f := page.MustElement("div:not([style*='display:']) > iframe[data-hcaptcha-widget-id]").MustFrame()
f.MustElement("#checkbox")
}
The code above will panic. It works fine on headless mode.
Rod Version: v0.102.0
The code to demonstrate your question
The code above will panic. It works fine on headless mode.