Webdriver, Firefox, error: The process cannot access the file because it is being used by another process

Open 1 Answers 44 Views

Issues launching FF 

Windows 7

Selenium : 3.4.0

Browser: Firefox


Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: ip: '', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_121'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:91)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:250)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:137)



Caused by: java.nio.file.FileSystemException: : The process cannot access the file because it is being used by another process.

at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
commented Apr 28 by stbadmin (4,747 points)
Can you post your code which you use to start browser. It looks like its not a webdriver issue. Main error you are facing here is "The process cannot access the file because it is being used by another process"

We need to figure out what is causing this.

1 Answer

It looks like your selenium Webdriver is not compatible with your Firefox WebDriver.

Few things I would suggest:

Downgrade your selenium WebDriver from 3.4.0 to 3.3.0


Also, you can upgrade your Firefox browser to the latest version and update your gecko driver as well.
answered Apr 28 by SunilBhaskar (238 points)

Kindly Register and join the community of software testing professionals.


We have recently moved our Question and Answer site from the domain name www.MayurShah.in to https://softwaretestingboard.com/qna as per the feedback from visitors.

For complete history of major changes, you can go to History

Site Status

  • que
  • ans
  • com
  • ua
  • us
  • Questions 817
  • Answers 738
  • Comments 464
  • Unanswered 126
  • Unselected 414