我正在尝试使用硒打开一个窗口来进行一些自动化操作,但是我什至无法打开窗口。
driver=webdriver.Chrome()
driver.get('https://www.youtube.com')
运行此代码时,出现以下错误
Exception ignored in: <function Popen.__del__ at 0x04097858>
Traceback (most recent call last):
File "C:\python install\lib\subprocess.py", line 841, in __del__
self._internal_poll(_deadstate=_maxsize)
File "C:\python install\lib\subprocess.py", line 1193, in _internal_poll
if _WaitForSingleObject(self._handle, 0) == _WAIT_OBJECT_0:
OSError: [WinError 6] The handle is invalid
运行代码时,chrome窗口打开,但随后出现错误。