ERROR:gpu_process_transport_factory.cc(1007)-Lost UI shared context : while initializing Chrome browser through ChromeDriver in Headless mode

前端 未结 2 1312
野趣味
野趣味 2020-12-03 18:58

I am getting this error when I attempt to run code on 2 of 3 computers:

[0502/155335.565:ERROR:gpu_process_transport_factory.cc(1007)] Lost UI shared context         


        
2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-03 19:39

    I had the same problem. Try adding these flags to Chrome driver options:

    options.add_arguments("--proxy-server='direct://'");
    options.add_arguments("--proxy-bypass-list=*");
    

    See this link for more information.

提交回复
热议问题