LeiShi1313 / scf-headless-chrome

Headless chrome running on tencent serverless cloud function.
MIT License
31 stars 6 forks source link

ChromeDriver executable needs #3

Open wswm152 opened 3 years ago

wswm152 commented 3 years ago

selenium.common.exceptions.WebDriverException: Message: 'ChromeDriver executable needs to be available in the path. QQ截图20201108160026 这个问题我在windows上也碰到了,指定driver路径会报这个错,放到环境变量path里才能运行

wukuai commented 3 years ago

+1, 可以修改代码在运行时添加PATH,实测可以解决该问题:

import sys    
sys.path.append('./chromedriver/')