selenium - 在 Raspberry Pi 4 上将 Chromium 配置文件加载到 Selenium
问题描述
我正在尝试将 Chromium 配置文件加载到 Raspberry OS 上的 Selenium 自动化实例中,但我似乎无法从配置文件中获取设置/cookie。获取个人资料位置表格后chrome://version
,我将其分配为profile
如下所示,但我一定遗漏了一些东西。
profile = options.add_argument("/home/pi/.config/chromium/Default")
driver = webdriver.Chrome(chrome_options=profile)
Linux 中的 Chromium 配置文件的工作方式与 Windows 中的不同吗?
解决方案
推荐阅读
- sql - SQL:连接两个表 - 结果表应列出所有 ID(即使是那些不在连接表中的 ID)
- ios - RemoteIO 单元去除背景噪音
- python - setuptools 包括所有软件包
- ios - iOS swift CTFontManagerRegisterGraphicsFont vs CTFontManagerRegisterFontsForURL
- php - WP v-5.5 $_GET 参数在我的插件中不起作用
- mongodb - 猫鼬评论和回复模式
- angular - 禁止手动输入日期
- c# - DateTimeOffset 格式并获得与 moment.js 相同的输出
- javascript - 多个测试套件的配置文件中的 Jest Teardown
- json - postgresql中的json-ize字符串列