Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Selenium中可移植Firefox-Excel VBA的Firefox配置文件_Excel_Selenium Webdriver_Vba - Fatal编程技术网

Selenium中可移植Firefox-Excel VBA的Firefox配置文件

Selenium中可移植Firefox-Excel VBA的Firefox配置文件,excel,selenium-webdriver,vba,Excel,Selenium Webdriver,Vba,嗨,我使用的是firefox便携式版本,工作正常。但是,我无法设置配置文件,因为配置文件目录被忽略。如果有人用过这个 声明如下: 可移植Firefox位置。根据帮助。我还试图在设置二进制文件后放置概要文件目录,但结果仍然相同 driver.SetProfile ("G:\Software - Portable\FirefoxPortable37\Data\profile") driver.SetBinary ("G:\Software -Portable\FirefoxPortable37\

嗨,我使用的是firefox便携式版本,工作正常。但是,我无法设置配置文件,因为配置文件目录被忽略。如果有人用过这个

声明如下:

可移植Firefox位置。根据帮助。我还试图在设置二进制文件后放置概要文件目录,但结果仍然相同

 driver.SetProfile ("G:\Software - Portable\FirefoxPortable37\Data\profile")
 driver.SetBinary ("G:\Software -Portable\FirefoxPortable37\FirefoxPortable.exe")
这将运行firefox portable version 37,但忽略带有扩展的配置文件


经过大量的实验后,我发现在最后添加一个true是有效的。所以代码看起来像

 driver.SetBinary ("X:\Path\FirefoxPortable37\Data\profile"),True
 driver.SetBinary ("X:\Path\FirefoxPortable37\Data\profile"),True