问题描述:
在使用Bitbucket流水线时,无法运行Chromedriver可执行文件。
解决方法:
ls /path/to/chromedriver
pipelines:
default:
- step:
name: Build and test
script:
- export PATH=$PATH:/path/to/chromedriver
- python test_script.py
/path/to/chromedriver --version
google-chrome --version
# For Ubuntu
apt-get update
apt-get install -y google-chrome-stable
# For CentOS
yum update
yum install -y google-chrome-stable
/path/to/chromedriver
这些解决方法应该可以帮助您在Bitbucket流水线中成功运行Chromedriver可执行文件。如果问题仍然存在,请检查流水线日志以获取更多详细信息,并尝试在Bitbucket支持论坛上提问。