8
当我在selenium中运行我的测试时,新打开的firefox窗口打开时没有安装像xpathchecker这样的插件。用firefox插件加载在硒中打开Firefox窗口?
是否有可能设置硒,以便它将使用Firefox的安装插件?
当我在selenium中运行我的测试时,新打开的firefox窗口打开时没有安装像xpathchecker这样的插件。用firefox插件加载在硒中打开Firefox窗口?
是否有可能设置硒,以便它将使用Firefox的安装插件?
如果您正在使用硒的远程控制,
然后,当你启动硒,使用
-firefoxProfileTemplate“路径轮廓”
指定安装了插件的配置文件的位置。
只需添加。当从Java运行RC时,您可以使用:
RemoteControlConfiguration server_preferences = new RemoteControlConfiguration();
File f = new File('/home/user/.mozilla/firefox/qa/'); // 'qa' is my profile folder name
server_preferences.setFirefoxProfileTemplate(f);
(...)
myServer = new SeleniumServer(server_preferences);
myServer.start();
如何使用硒遥控器(rc)启动firefox? – Pradeep 2009-07-16 17:29:12