Skip to content

Selenium Python unable to remove temporary profile on quit #3962

@willisdl

Description

@willisdl

Meta -

OS: Windows Server 2012
Selenium Version: 3.4.1
Browser: FireFox
Browser Version: 53.0 (32-bit)

Expected Behavior -

On exiting using driver.quit(), temporary profile files and folders should be deleted.

Actual Behavior -

Every time webdriver closes the browser and exits, I get the following error (a different folder each time, but the same dll):
[Error 5] Access is denied: 'h:\temp\998\tmppokgo9\webdriver-py-profilecopy\gmp-eme-adobe\16\eme-adobe.dll'

Steps to reproduce -

Running the following code will cause the problem:

fp = webdriver.FirefoxProfile(profile_directory='G:\aws\Test\AutomatedTests\profiles\profiles\iej30lm3.jamie')
fp.set_preference("security.default_personal_cert", "Select Automatically")
fp.set_preference("webdriver_accept_untrusted_certs", True)
browser = webdriver.Firefox(fp)
browser.implicitly_wait(10)
browser.get('http://www.google.com')
time.sleep(5)
browser.quit()

Metadata

Metadata

Assignees

No one assigned

    Labels

    J-awaiting answerQuestion asked of user; a reply moves it to triage againZ-marionetteArchived: Marionette browser / driver

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions