硒打开Firefox窗口,火狐浏览器安装加载? [英] Open firefox window in selenium with firefox addons loaded?

查看:150
本文介绍了硒打开Firefox窗口,火狐浏览器安装加载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行我的硒测试中,打开新打开Firefox窗口没有我喜欢xpathchecker安装插件。

when I run my test in selenium, the newly opened firefox window is opened without my installed addons like xpathchecker.

是否可以设置硒,使其使用Firefox插件安装?

Is it possible to setup selenium so that it will use firefox with installed addons?

推荐答案

如果您使用的是硒遥控器,

If you are using selenium remote control,


  1. 您可能需要创建一个单独的个人资料与你的插件测试。

  2. 之后,你可以在新的配置文件安装插件。记下在文件管理器配置文件文件夹的路径,或点击这里找到您的配置文件夹

  3. 然后,当你启动硒,用

  1. you might need to create a separate profile for testing with your addons.
  2. After that you can install the addons in that new profile. Note down the path of the profile folder in profile manager or check here to locate your profile folder
  3. Then when you start selenium, use

-firefoxProfileTemplate路径轮廓

-firefoxProfileTemplate "path to the profile"

要安装插件指定配置文件的位置。

to specify the location of the profile with addons installed.

这篇关于硒打开Firefox窗口,火狐浏览器安装加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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