javascript - Chromedp: How to handle iframes on a webpage? -


i want html source of iframe present on webpage. using chromedp package golang. how handle iframes chromedp package? documentation less couldn't find way.

links:

chromedp

google-doc more details of task.

after many attempts, finally, found way , solved query. can check github repository query. thank you. iframe contents can use javascript. way chromedp below,

cdp.evaluateasdevtools("document.getelementbyid('iframe-id').contentwindow.document.body.outerhtml;", result-buffer), 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -