how to set cache path selenium webdriver firefox c#

时间:2017-06-15 10:35:42

标签: c# selenium selenium-webdriver

I need the cache has been preserved and it was possible to reconnect.Tried this :

 FirefoxProfile profile = new FirefoxProfile(@"D:\сacheFirefox",false);
 IWebDriver driver = new FirefoxDriver(profile);
 MessageBox.Show(profile.ProfileDirectory);

but the folder D:\сacheFirefox empty, but the MessageBox displays the path in temp folder, but he doesn't exist Can you help ?

0 个答案:

没有答案