Chromedriver not deleting scoped* dir in temp folder after test is complete

后端 未结 6 1605
野性不改
野性不改 2021-02-07 09:26

With latest chromedriver.exe running into out of disk space issues as chromedriver is not deleting the folder named scoped_* at the end of the execution. It is occupying almost

6条回答
  •  星月不相逢
    2021-02-07 09:56

    Using latest chromedriver 2.30.1 didn't solve the issue for me - I kept running out of storage in my %TEMP% directory when running parallel selenium jobs.

    The best solution is to control the userDataDir via Chrome Options and dispose of the directory yourself after you driver.quit()

    If your process is synchronous than @cdzar's solution above will work, but for parallel jobs you really need to control the directory create/dispose yourself.

    You can checkout other chromium command line switches here.

提交回复
热议问题