-
Notifications
You must be signed in to change notification settings - Fork 114
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
前几天用还好好的,今天打开就不行了 #162
Comments
是不是浏览器升级了,浏览器版本与驱动版本不一致或者浏览器未正常关闭 |
|
我向依赖的源仓库提交 issues :GoogleChromeLabs/chrome-for-testing#167 |
2024-12-27 18:44:56.765 | INFO | main::40 - MainProcess:MainThread -
ooooo ooooo .oooooo..o oooo oooo o8o oooo oooo
888'
888' d8P'Y8
888 .8P'"'
888888 888 888 oooo oooo ooo Y88bo. .ooooo. .ooooo. 888 d8' oooo 888 888 888ooooo888
88.88. .8'
"Y8888o. d88'88b d88'
"Y8 88888[888 888 888 888 888
88..]88..8' 8888888"Y88b 888ooo888 888 888
88b. 888 888 888888 888
888'
888' oo .d8P 888 .o 888 .o8 88888b. 888 888 888 o888o o888o
8'8' 8""88888P'
Y8bod8P' `Y8bod8P' o888o o888o o888o o888o o888o2024-12-27 18:44:56.765 | INFO | config:init:10 - MainProcess:MainThread - 开始解析配置文件
2024-12-27 18:44:56.765 | INFO | config:init:15 - MainProcess:MainThread - 结束解析配置文件
2024-12-27 18:44:56.767 | INFO | huawei:__browser_setting:88 - MainProcess:MainThread - 开始设置浏览器参数
Exception managing chrome: error sending request for url (https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json): error trying to connect: 远程主机强迫关闭了一个现有的连接。 (os error 10054)
Traceback (most recent call last):
File "E:\Python311\Lib\site-packages\selenium\webdriver\common\driver_finder.py", line 38, in get_path
path = SeleniumManager().driver_location(options) if path is None else path
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Python311\Lib\site-packages\selenium\webdriver\common\selenium_manager.py", line 95, in driver_location
output = self.run(args)
^^^^^^^^^^^^^^
File "E:\Python311\Lib\site-packages\selenium\webdriver\common\selenium_manager.py", line 141, in run
raise WebDriverException(f"Unsuccessful command executed: {command}.\n{result}{stderr}")
selenium.common.exceptions.WebDriverException: Message: Unsuccessful command executed: E:\Python311\Lib\site-packages\selenium\webdriver\common\windows\selenium-manager.exe --browser chrome --output json.
{'code': 69, 'message': 'Driver unavailable: Driver path: ', 'driver_path': '', 'browser_path': ''}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\洪\Desktop\hw_seckill-1.2.1\main.py", line 42, in
main()
File "C:\Users\洪\Desktop\hw_seckill-1.2.1\main.py", line 16, in main
huawei = HuaWei()
^^^^^^^^
File "C:\Users\洪\Desktop\hw_seckill-1.2.1\huawei.py", line 46, in init
self.__browser_setting(profile_path)
File "C:\Users\洪\Desktop\hw_seckill-1.2.1\huawei.py", line 90, in __browser_setting
.setting(self.config, constants.SELENIUM_LOG_FILE, profile_path))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\洪\Desktop\hw_seckill-1.2.1\browser\chrome.py", line 37, in setting
browser = webdriver.Chrome(service=webdriver.ChromeService(executable_path=executable_path, log_path=log_path),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Python311\Lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 45, in init
super().init(
File "E:\Python311\Lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 51, in init
self.service.path = DriverFinder.get_path(self.service, options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Python311\Lib\site-packages\selenium\webdriver\common\driver_finder.py", line 41, in get_path
raise NoSuchDriverException(msg) from err
selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain driver for chrome using Selenium Manager.; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location
进程已结束,退出代码为 1
The text was updated successfully, but these errors were encountered: