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:
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
Post a Comment