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

Open 1 Answers 166 Views
0 1

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 by (192 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 by (527 points)

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

Top Contributors