如何切换Firefox配置文件与硒 - 没有实例化一个新的驱动程序? [英] How to switch Firefox profile with Selenium - without instantiating a new driver?

查看:85
本文介绍了如何切换Firefox配置文件与硒 - 没有实例化一个新的驱动程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图找到一种方法来切换活动配置文件中的硒Firefox的驱动程序。 此有关的多个Firefox配置问题指出,创建和使用多个配置文件是可能的。然而,它会更好,如果有一些方法来切换驱动器会话中活跃的Firefox的配置 - 而不是开始一个新的

Trying to find a way to switch the active profile in a Selenium Firefox driver. This question about multiple Firefox profiles states that creating and using multiple profiles is possible. However, it would be better if there were some way to switch the active Firefox profile within the driver session - instead of starting a new one.

我怎样才能切换活动Firefox的配置与硒?

How can I switch the active Firefox profile with Selenium?

非常感谢!

推荐答案

您不能。硒不会让你改变Firefox配置,我pretty确保即使Firefox没有。

You can't. Selenium does not let you change Firefox profiles, and I'm pretty sure even Firefox doesn't.

这篇关于如何切换Firefox配置文件与硒 - 没有实例化一个新的驱动程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆