我必须将Firefox配置文件与Splinter一起使用

问题描述 投票:4回答:2

我想使用特定的配置文件与splinter。但我不知道我必须把它放到哪个位置才能使这个工作。

python selenium splinter
2个回答
0
投票

从这个链接here,您只需要提供您的自定义配置文件名称,如下所示

from splinter import Browser
browser = Browser('firefox', profile='my_profile')

0
投票

根据这个issue,传递自定义配置文件名称不起作用。但是,将完整路径传递给配置文件会。

© www.soinside.com 2019 - 2024. All rights reserved.