Chromedp: Evaluate javascript ?

Created on 27 Jan 2017  路  3Comments  路  Source: chromedp/chromedp

Hello,

Is there a way to evaluate javascript code ? It's a fairly common task among all browser automation tools I used, but I didn't find it in chromedp (and the lack of docs didn't help either).

Thanks,
Howe

Most helpful comment

Yes, use the chromedp.Evaluate() action in conjuction with the chromedp/runner/Runner. Or use chromedp/cdp/runtime.Evaluate() with the frame handler.

All 3 comments

Yes, use the chromedp.Evaluate() action in conjuction with the chromedp/runner/Runner. Or use chromedp/cdp/runtime.Evaluate() with the frame handler.

Oh, thanks. I've missed that.

Howe

Thank you. After giving a thought for some time, I got it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

seanchann picture seanchann  路  3Comments

Tallone picture Tallone  路  4Comments

shailendrayadav1 picture shailendrayadav1  路  4Comments

aymericbeaumet picture aymericbeaumet  路  5Comments

guotie picture guotie  路  3Comments