Welcome to the Question and Answer site for Software Testing Professionals

You can get your queries resolved from Software Testing Professionals.

Ask a Question

Get answers and give answers to questions from other members.

View All Questions

Get votes and earn points to build your reputation in community.

View Hot Questions

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

Open 1 Answers 154 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 Apr 28, 2017 by stbadmin (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 Apr 28, 2017 by SunilBhaskar (445 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.

We have resolved 1.2k+ Software Testing queries!

Software Testing Board Weekly update

We will send you handpicked questions that you would love to answer.

View previous campaigns.

Top Contributors