使用Firefox的c#硒webdriver便携式 [英] c# selenium webdriver using firefox portable
本文介绍了使用Firefox的c#硒webdriver便携式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用硒与便携Firefox
,我需要用两个Firefox浏览器不同的配置文件在硬盘上的两个定位,但是当创建
FirefoxBinary
和FirefoxProfile
,然后FirefoxDriver,浏览器警报=
您Firefox配置不能被加载。它可能会丢失或无法访问
请帮我
感谢
解决方案
- 让硒创建它自己的配置文件
- 指定你自己的Firefox配置文件。
- Let selenium create it's own profile.
- Specify your own firefox profile.
醇>
有关#2
,你只需要传递参数:
-firefoxProfileTemplate /path/to/selenium.profile
I want using selenium with portable firefox and I need using two firefox with different profile in two location of hard disk but when create
FirefoxBinary and FirefoxProfile and then FirefoxDriver , browser alert =
Your Firefox profile cannot be loaded. It may be missing or inaccessible
please help me thanks
解决方案
This simply means that selenium cannot find your selenium profile. You have two options:
For #2
, you simply need to pass the argument:
-firefoxProfileTemplate /path/to/selenium.profile
这篇关于使用Firefox的c#硒webdriver便携式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文