robotFramework運行時報錯[1021/161731.893:ERROR:gl_surface_egl.cc(699)] EGL Driver message (Error) eglQueryDeviceAttribEXT: Bad attribute.


命令行運輸robot腳本時一直報錯,瀏覽器關閉后才沒有報錯信息了
[1021/161731.893:ERROR:gl_surface_egl.cc(699)] EGL Driver message (Error) eglQueryDeviceAttribEXT: Bad attribute.

 

 

解決辦法:

chrome版本較高,禁用GPU加速

chrome_opt = webdriver.ChromeOptions()
chrome_opt.add_argument('--disable-gpu')
 path = r"D:/tools/chromedriver/chromedriver.exe"
 driver = webdriver.Chrome(executable_path=path,chrome_options=chrome_opt)

  

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM