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.
It is also correctly selected in the browser and recorded with the same selector.
Rod Version: v0.114.7