python - Create a Python executable with Selenium webdriver manager
问题描述
I want to convert my Selenium code to an executable, I used auto-py-to-exe, it always worked for non Selenium codes, so I don't know what to do.
I was looking at the answer that was provided here : Create a Python executable with chromedriver & Selenium but it doesn't exactly address my problem because you need to change the .spec file and add your Chromedriver path, but I don't use chromdriver, I use webdriver manager.
so I am kinda lost here any help
解决方案
我遇到了同样的问题。我想假设 selenium 脚本是普通的 python 文件。它奏效了。使其成为可执行文件的步骤:
pip install pyinstaller
pyinstaller --onefile pythonScriptName.py
推荐阅读
- javascript - Javascript 读取 json 并创建 json 对象
- react-native - 我无法访问 json 子数据
- alasql - AliSQL 结果列与 SELECT 子句不同
- reactjs - 反应没有结束标签
- javascript - Discord.js,切换命令
- .htaccess - 将文件从根目录传输到另一个目录时的 RewriteRule
- r - 如何使用 R 中的命令 heatmap() 修复错误“x”必须是数字矩阵?
- clojure-core.logic - “事实数据库”不是迷你看人的核心功能吗?
- android - AlertDialog 未显示
- pandas - 如果我在熊猫中四舍五入到小数点后两位,我在熊猫中只得到一位小数