Selenium中可移植Firefox-Excel VBA的Firefox配置文件
嗨,我使用的是firefox便携式版本,工作正常。但是,我无法设置配置文件,因为配置文件目录被忽略。如果有人用过这个 声明如下: 可移植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\
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