“Unable to move the cache” error in selenium webdriver

前端 未结 4 1517
星月不相逢
星月不相逢 2021-01-01 18:54

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 m         


        
相关标签:
4条回答
  • 2021-01-01 19:06

    This problem occurs due to the chormedriver api is not integrated with your project.

    JUST DO THESE STEPS:

    1. Configure your chormedriver api in your build path ( download from here http://chromedriver.storage.googleapis.com/index.html)

    2.Go to the project right click ->>> go to build path ---> conf build path --> libraries --> add jar (add chromedriver jar file)

    1. now add this code before the chormdriver object call. System.setProperty("webdriver.chrome.driver", "path for your chormedriver api ");
    0 讨论(0)
  • 2021-01-01 19:09

    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.

    0 讨论(0)
  • 2021-01-01 19:18

    It's because you must install selenium web driver instead of selenium IDE, download both & configure build path with that jar file.

    Double check the import files which corresponds to selenium web driver, not selenium IDE.

    0 讨论(0)
  • 2021-01-01 19:19

    It is a problem with chrome driver installation. After I installed the chrome driver it worked for me. Thanks

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