我使用基于烧瓶的应用程序设置了python机器人框架
从高山:最新 复制。 / app WORKDIR / app 运行ls -la / 运行apk add --no-cache sqlite py3-pip 运行pip3 install -r requirements.txt ENV FLASK_PORT 8181 ENV FLASK_APP demo_app CMD [“ sh”,“ run.sh”] COPY testing / ui / config / / app / tests / config / COPY testing / ui / pages / / app / tests / pages / COPY testing / ui / steps / / app / tests / steps / COPY testing / ui / test_data / / app / tests / test_data / COPY testing / ui / tests / / app / tests / tests / COPY testing / ui / test_suites / / app / tests / test_suites / 运行ls -la / WORKDIR / app / tests / test_suites / CMD [“ sh”,“ run_ui_negative_tests.sh”]
版本:“ 3” 服务: 烧瓶: 主机名:demoapp 图片:demoapp:0.0.1 建立: 内容:。 dockerfile:./ Dockerfile
links:
- chrome
tty: true
chrome: 图片:硒/节点铬:4.0.0-alpha-7-prerelease-20201009 数量: -/ dev / shm:/ dev / shm 取决于: -硒毂 环境: -SE_EVENT_BUS_HOST =硒集线器 -SE_EVENT_BUS_PUBLISH_PORT = 4442 -SE_EVENT_BUS_SUBSCRIBE_PORT = 4443 端口: -“ 5900:5900”
硒集线器: 图片:硒/集线器:4.0.0-alpha-7-prerelease-20201009 container_name:硒毂 端口: -“ 4442:4442”
WebDriverException:消息:“ chromedriver”可执行文件必须位于PATH中。请参阅https://sites.google.com/a/chromium.org/chromedriver/home h
答案 0 :(得分:0)
尝试添加Chrome驱动程序应用程序的存储路径。
driver = webdriver.Chrome(executable_path=r'your_path\chromedriver.exe')