self = <selenium.webdriver.phantomjs.service.Service object at 0x00000079F748C198>
def stop(self):
"""
Stops the service.
"""
if self.log_file != PIPE:
try:
self.log_file.close()
except Exception:
pass
if self.process is None:
return
self.send_remote_shutdown_command()
try:
if self.process:
> self.process.stdout.close()
E AttributeError: 'NoneType' object has no attribute 'close'
c:\program files\python 3.5\lib\site-packages\selenium\webdriver\common\service.py:124: AttributeError
Calling self.service.stop() throws an AttributeError 'NoneType' on 'close':