How do I use Headless Chrome in Chrome 60 on Windows 10?

后端 未结 6 1081
一生所求
一生所求 2020-12-29 00:56

I\'ve been looking at the following article about Headless Chrome:
https://developers.google.com/web/updates/2017/04/headless-chrome

I just upgraded Chrome on Wi

6条回答
  •  青春惊慌失措
    2020-12-29 01:53

    You should be good. Check under the Chrome Version directory

    C:\Program Files (x86)\Google\Chrome\Application\60.0.3112.78
    

    For the command

    chrome --headless --disable-gpu --print-to-pdf https://www.google.com/
    
    C:\Program Files (x86)\Google\Chrome\Application\60.0.3112.78\output.pdf 
    

    Edit: Still execute commands where the chrome executable is, in this instance

     C:\Program Files (x86)\Google\Chrome\Application\
    

提交回复
热议问题