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
encountered an undefined value #526
Comments
If you run that in your browser console, it does return undefined. Why are you trying to obtain the result as a string? Please think about these issues before filing new issues. I do not offer free support for questions that can be solved with a bit of thinking and googling. |
res runtime.RemoteObject You can't do this only once |
Sorry, but I don't understand. |
Closing because I still don't know what this is about. |
|
what the hell is chromedp.Evaluate function juse a undefined result ,why to case panic in go , that is holy shit code |
@mvdan I think I understand what they are saying. If chromedp.Evaluate action returns an Perhaps the way to solve this in the library could be to relax the requirement on the |
A note for whom encounters the same issue and gets here: besides constructing the javascript to make sure it returns a value other than Please note that var res *runtime.RemoteObject
chromedp.EvaluateAsDevTools("window.scrollTo(0,document.body.scrollHeight);",&res), |
After #816 is merged, you can simply write: EvaluateAsDevTools("window.scrollTo(0,document.body.scrollHeight);", nil), |
var res string
chromedp.EvaluateAsDevTools("window.scrollTo(0,document.body.scrollHeight);",&res),
Hello, this printing error
2019/11/27 18:06:54 encountered an undefined value
The text was updated successfully, but these errors were encountered: