liuma平台执行后报错

提问 3 271
躺平第一名
躺平第一名 LV1 2023年10月13日 14:23 发表
<p>&nbsp; 2023-10-13 05:43:17.267504 - Error - Message: 'hub' executable needs to be in PATH. Please see <a href="https://sites.google.com/a/chromium.org/chromedriver/home" target="_blank">https://sites.google.com/a/chromium.org/chromedriver/home</a><br>2023-10-13 05:43:17.275035 - Error - 程序错误信息:<br>Traceback (most recent call last):<br>File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 72, in start self.process = subprocess.Popen(cmd, env=self.env,<br>File "/usr/local/lib/python3.8/subprocess.py", line 858, in __init__ self._execute_child(args, executable, preexec_fn, close_fds,<br>File "/usr/local/lib/python3.8/subprocess.py", line 1704, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename)<br>During handling of the above exception, another exception occurred:<br>Traceback (most recent call last):<br>File "/usr/local/lib/python3.8/unittest/case.py", line 60, in testPartExecutor yield<br>File "/usr/local/lib/python3.8/unittest/case.py", line 676, in run self._callTestMethod(testMethod)<br>File "/usr/local/lib/python3.8/unittest/case.py", line 633, in _callTestMethod method()<br>File "/liuma/lm/lm_case.py", line 26, in testEntrance WebTestCase(test=self).execute()<br>File "/liuma/core/web/testcase.py", line 43, in __init__ self.driver = webdriver.Chrome(executable_path=test.driver["browser_path"], options=opt)<br>File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__ self.service.start()<br>File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 81, in start raise WebDriverException(<br>selenium.common.exceptions.WebDriverException: Message: 'hub' executable needs to be in PATH. Please see <a href="https://sites.google.com/a/chromium.org/chromedriver/home" target="_blank">https://sites.google.com/a/chromium.org/chromedriver/home</a><br></p>
收藏(0)  分享
相关标签: liuma平台报错
注意:本文归作者所有,未经作者允许,不得转载
3个回复
相关帖子
没有相关数据
源码地址
微信扫描二维码添加作者微信加入社区官方交流群
layui