selenium icon indicating copy to clipboard operation
selenium copied to clipboard

Firefox profiles with RemoteWebDriver

Open martmo opened this issue 10 years ago • 7 comments

Meta -

OS:
Windows Server 2-12 R2

Selenium Version:
3.0.1

Browser:
Firefox 47.0.1

Browser Version:
47.0.1

Expected Behavior -

When running tests from .Net client all is well, tests run as expected. Once tests are completed, the firefox profiles generated on the target Grid nodes in temp directories should be deleted.

Actual Behavior -

The firefox profiles generated in C:\users<username>\AppData\Local\Temp\ with name anonymouswebdriver-profile are not deleted once the tests complete. Each one of these dir are ~4 MB which very quickly adds up to considerable space. When running under 2.53.1 this did not occur, is this a reoccurrence of an earlier bug?

martmo avatar Nov 02 '16 16:11 martmo

this should have been fixed in 3.0.1 related issue #2914

lukeis avatar Nov 02 '16 17:11 lukeis

Definitely still an issue, our C# code is identical to that we were running on Selenium 2.53.1 plus we are calling RemoteWebDriver.Quit() to initiate cleanup

martmo avatar Nov 03 '16 15:11 martmo

@lukeis This is still an issue for me as well. My temp directory on my selenium grid server is becoming full fairly quickly. I am calling driver.quit(), but the temporary profiles do not get deleted.

I am using Selenium Java.

bradhasha avatar Feb 13 '17 20:02 bradhasha

@bradhasha in the end we reverted back to 2.53.1 as we were unable to resolve the issue with profiles not being cleaned up

mart44 avatar Feb 14 '17 09:02 mart44

Thank you @mart44. I'll probably do the same until this issue is resolved.

bradhasha avatar Feb 14 '17 15:02 bradhasha

As a workaround, you can delete old profiles by a cron or similar scheduled task until this issue is fixed (occurs on CentOS 6.8 also).

find /tmp/*webdriver-profile -maxdepth 0 -type d -mmin +60 -exec rm -rf "{}" \;

m7stock avatar Apr 28 '17 10:04 m7stock

Duplicate of #5209

(and fixed via https://github.com/SeleniumHQ/selenium/commit/0bea0a1a09accff51cf197c8ac190242a4075348)

diemol avatar Sep 23 '18 17:09 diemol