go-rod / rod

A Chrome DevTools Protocol driver for web automation and scraping.
https://go-rod.github.io
MIT License
5.01k stars 328 forks source link

Bug Select Frame Element #1012

Closed rgunindi closed 4 months ago

rgunindi commented 4 months ago
                                el, _ := page.Element("#videoSection")
                el.MustWaitVisible()
                frame01, _ := el.Frame()
                fmt.Println(frame01.FrameID) // Getting ID
                fmt.Println(frame01.IsIframe()) // true

                els, err := frame01.Element(".play-button") //And Panic exactly this line, not catching the error.
                if err != nil {
                        fmt.Println("No elements found with the specified XPath")
                        return
                }

It is also correctly selected in the browser and recorded with the same selector.

Rod Version: v0.114.7

github-actions[bot] commented 4 months ago

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

generated by check-issue

ysmood commented 4 months ago

https://github.com/go-rod/rod/issues/548