Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webdriver/phantomjs/service.py OS-level handle needs to be closed #1854

Closed
palacinka opened this issue Mar 21, 2016 · 4 comments
Closed

webdriver/phantomjs/service.py OS-level handle needs to be closed #1854

palacinka opened this issue Mar 21, 2016 · 4 comments

Comments

@palacinka
Copy link

in webdriver/phantomjs/service.py
on line 45
self._cookie_temp_file = tempfile.mkstemp()[1]
^^ OS-level handle is ignored here

OS-level handle to an open file needs to be closed during driver.quit() or it will throw Exception to Windows users

WindowsError: [Error 32] The process cannot access the file because it is being used by another process:

exception is raised on line 68 in selenium\webdriver\phantomjs\service.py", line 68, in send_remote_shutdown_command
os.remove(self._cookie_temp_file)

@zyq001
Copy link

zyq001 commented Mar 23, 2016

The same problem. UP!

@ghost
Copy link

ghost commented Mar 23, 2016

Yup, just upgraded selenium and getting it !

@mahrous78
Copy link

I am facing this issue too on Windows 7, selenium-2.48.0

@jonatascastro12
Copy link

I got the same problem too! Selenium 2.53.1

@lukeis lukeis closed this as completed in e85c594 Mar 28, 2016
lukeis pushed a commit that referenced this issue Mar 28, 2016
Fixes #1854

Signed-off-by: Luke Inman-Semerau <luke.semerau@gmail.com>
@lock lock bot locked and limited conversation to collaborators Aug 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants