首页 > 解决方案 > 在 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 中的不同吗?

标签: seleniumraspberry-pichromium

解决方案


推荐阅读