Headless Chrome REPL not working

前端 未结 2 899
独厮守ぢ
独厮守ぢ 2020-12-15 11:18

When I try to run:

google-chrome --headless --disable-gpu --repl http://google.com

getting infinite:

[0829/155519.758686:IN         


        
相关标签:
2条回答
  • 2020-12-15 12:00

    type this

     alias chrome=/opt/google/chrome/chrome
    

    then use chrome

     chrome --headless --disable-gpu --repl http://google.com
    
    0 讨论(0)
  • 2020-12-15 12:04

    Use the binary /opt/google/chrome/chrome directly not google-chrome which points to bash script /usr/bin/google-chrome.

    Taken from comments in

    https://developers.google.com/web/updates/2017/04/headless-chrome#screenshots

    0 讨论(0)
提交回复
热议问题