【发布时间】:2021-02-13 06:49:40
【问题描述】:
我在 python 中有以下 selenium 代码来使用我的 firefox 配置文件,这个想法是让我免于每次登录到我经常访问的页面,但 Selenium 仍然在没有我的“记忆”或“历史”的情况下开始自己正在登录这些页面并保持登录状态。
请问怎么了?
def create_selenium_FF():
options = Options()
profile = webdriver.FirefoxProfile('/Users/Victor 1/Library/Application Support/Firefox/Profiles/z3ay0enb.default')
driver = webdriver.Firefox(profile)
driver = webdriver.Firefox()
return driver
【问题讨论】:
标签: python selenium firefox automation