Do you have questions ? We got the answers!

Ask a question:

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

Open 1 Answers 131 Views

Issues launching FF 

OS:
Windows 7

Selenium : 3.4.0

Browser: Firefox
 

 

Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: ip: '169.254.91.8', 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)
1Comments
commented Apr 28 by stbadmin (4,970 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

1
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

Or

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

Top Contributors

  • 4970 pointsstbadmin

    34 questions 454 answers218 comments

  • 433 pointsSunilBhaskar

    41 questions 15 answers32 comments

  • 425 pointsMehedi

    36 questions 3 answers14 comments

  • 363 pointssumitkumarwatts

    0 questions 13 answers0 comments

  • 354 pointsSoft Tester

    43 questions 0 answers4 comments

  • 327 pointsKeeshaGolden

    0 questions 17 answers2 comments

  • 322 pointsVipul Sharma

    44 questions 0 answers24 comments

  • 310 pointsvysh.sharma

    25 questions 0 answers0 comments

  • 267 pointsOnkar_Nimje

    33 questions 15 answers15 comments

  • 258 pointsVanitha

    26 questions 0 answers6 comments

...