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