Questions tagged [chromedp]

A Go language package that implements a client for CDP (Chrome DevTools Protocol).

chromedp package is a high level CDP (Chrome DevTools Protocol) client in language that simplifies driving browsers for scraping, unit testing, or profiling web pages using the CDP.

chromedp requires no third-party dependencies, implementing the async Chrome DevTools Protocol entirely in Go.

65 questions
0
votes
1 answer

Cannot get current window title

I try to get windows title on gmail inbox page after it was opened. For some reason the title is empty. What am I doing wrong? Chromedp is used for browser automation. ... var title string err := chromedp.Run(taskCtx, …
rozerro
  • 5,787
  • 9
  • 46
  • 94
0
votes
1 answer

How to handle iframes on a webpage

I want to get the HTML source of the iframe present on the webpage. I am using chromedp package with Go. How to handle the iframes with chromedp package? The documentation is very less so couldn't find a way. Links: chromedp Google-doc to get more…
yogesh_desai
  • 449
  • 9
  • 21
-1
votes
1 answer

How to load local html to headless chrome

I have local html files which I need to render them and get their screenshot. I could not find any solution to load html codes in chromedp Is that possible?
user3067113
  • 11
  • 3
  • 9
-1
votes
1 answer

Why promise not working in golang chromedp

I was actually tried to execute this code in golang chromedp, but not working const inlineJavascript = ` var textarea = document.createElement('textarea'); textarea.setAttribute('id', 'recaptcha-token-container'); textarea.style.display…
Ata amini
  • 39
  • 1
  • 8
-1
votes
1 answer

How to us proxy with chromedp

I want to take screenshot of (thousands of pages) of website like Amazon. I tried some code but getting captcha or traffic error in screenshot. So I want to add proxy with chromedp. ctx, cancel := chromedp.NewContext(context.Background()) defer…
SAJIKUMAR j s
  • 27
  • 1
  • 4
1 2 3 4
5