“无法移动缓存”硒webdriver错误 [英] "Unable to move the cache" error in selenium webdriver

查看:321
本文介绍了“无法移动缓存”硒webdriver错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  [2144:7568:0519 

在运行Chrome浏览器的selenium webdriver脚本时,出现以下错误: /130434:ERROR:cache_util_win.cc(20)]无法移动缓存:0
[2144:7568:0519/130434:错误:cache_util.cc(134)]无法移动缓存文件夹C:\ Users\Prudvi\AppData\Local\Google\Chrome\User Data\ShaderCache\GPUCache to C:\Users\Prudvi\AppData\Local\Google\Chrome\User Data\ShaderCache\old_GPUCache_000
[2144:7568:0519/130434:错误:cache_creator.cc(129)]无法创建缓存
[2144:7568:0519/130434:错误:shader_disk_cache。 cc(589)]着色器缓存创建失败:-2

请有人帮我解决


解决方案

我假设您开始使用您的chrome驱动程序来附加您的默认配置文件。



<这不是你的铬驱动程序的问题,这是因为你是奔跑的当你启动你的selenium webdriver的时候,在你启动另一个chrome实例的时候,这个配置文件中的一些文件会被锁定,这样你的硒驱动程序就无法移动它。



同样的问题,并关闭所有铬实例,然后开始我的硒webdriver解决了问题。


While running the selenium webdriver script for chrome browser, I am getting the below error:

[2144:7568:0519/130434:ERROR:cache_util_win.cc(20)] Unable to move the cache: 0
[2144:7568:0519/130434:ERROR:cache_util.cc(134)] Unable to move cache folder C:\Users\Prudvi\AppData\Local\Google\Chrome\User Data\ShaderCache\GPUCache to C:\Users\Prudvi\AppData\Local\Google\Chrome\User Data\ShaderCache\old_GPUCache_000
[2144:7568:0519/130434:ERROR:cache_creator.cc(129)] Unable to create cache
[2144:7568:0519/130434:ERROR:shader_disk_cache.cc(589)] Shader Cache Creation failed: -2

Could some one help me out please

解决方案

I assume you're starting your chrome driver attaching your default profile.

It's not the problem of your chrome driver, It's because you are running another chrome instance while you are starting your selenium webdriver, so some of the files in the profile is locked so that your selenium webdriver can not move it.

I encountered the same problem and shut down all chrome instances before starting my selenium webdriver solved the problem.

这篇关于“无法移动缓存”硒webdriver错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆