ERROR cache util win cc 21 Unable to move the cache Access is denied 0x5

0 votes

Aug 19, 2019 in Selenium by rrgeereddy

I got the same is the code.

package newpackage;

import org.openqa.selenium.WebDriver;


public class MyClass {

public static void main(String[] args) {

System.setProperty("","C:/Program Files (x86)/Google/Chrome/Application/chrome.exe");


WebDriver driver = new ChromeDriver();

String baseUrl = "";

String expectedTitle = "Welcome: Mercury Tours";

String actualTitle = "";


actualTitle = driver.getTitle();

if (actualTitle.contentEquals(expectedTitle)){

System.out.println("Test Passed!");

} else {

System.out.println("Test Failed");




Try this:

System.setProperty("","C:\\Program Files(x86)\\Google\\Chrome\\Application\\chrome.exe");

You're setting the chrome browser binary path, what you should set here is the chromedriver path. This should do!

1 answer to this question.

0 votes
@rrgeereddy, can you show how you are setting driver path in System.SetProperty() method. Please check whether you are using Chrome/Firefox/IE driver binary path or driver path. Please share your code's screenshot, the lines in which error are showing.
answered Aug 19, 2019 by Abha
• 28,040 points

"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe");

I am using this one but still getting the same issue can you help me in that?
Hi @Akash! Can you please post the error logs?

Related Questions In Selenium

+1 vote
2 answers
+1 vote
0 answers

python selenium error: element is not attached to the page document

I am scraping Banggood, the problem is ...READ MORE

Apr 10, 2020 in Selenium by eslam
• 130 points
0 votes
1 answer

Error showing up, Unable to click the second page and get title. Any Solution?

Hi, @Faha, As you access the URL there ...READ MORE

answered Nov 25, 2020 in Selenium by Gitika
• 65,950 points
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer