New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go-rod panics with iFrames due to null pointer dereference #949
Comments
Please fix the format of your markdown: 105 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"] generated by check-issue |
i'm having the same issue , simple as : browser := launchBrowser()
page := stealth.MustPage(browser)
page.MustNavigate(pageURL)
frame := page.MustElement("iframe:not([data-hcaptcha-response])").MustFrame()
println(frame.HTML()) throws this error :
it does get the right element with just MustElement but once i use MustFrame to be able to get nested elements it throws the error |
works in headless mode but panics with show |
Ah, thanks for mentioning that. I was also developing so, I disabled the headless mode. Probably, I could use the screenshot feature to see what's going on. |
I think it's related to #548 |
yes i think its the same issue, tho i saw you confirm the issue happens in puppeteer too but in puppeteer it worked fine for me, im rewriting my nodejs scraper in go in the nodejs it worked fine |
i'm having the same issue. |
for anyone still having issue, what seems to work right now is headless mode, sucks that you're forced to debug anything post iframe with console logs and traces but at least that works |
Rod Version: v0.114.3
I am getting the following null pointer dereference from go-rod:
This is the kind of code that triggers it:
Line 504 in internal/bot/lib.go:504 +0x48 is:
in my code which is the last line from my code before the panic from go-rod.
The text was updated successfully, but these errors were encountered: