0
我在我的Selenium項目中使用FiddlerCore。它捕獲所有的會話,但我不能執行導出 - DoExport方法總是返回false。你可以幫我嗎? 這裏是我的代碼:在FiddlerCore導出不起作用
IWebDriver driver = new InternetExplorerDriver();
Fiddler.FiddlerApplication.Startup(8877, FiddlerCoreStartupFlags.Default);
var items = new List<Fiddler.Session>();
Fiddler.FiddlerApplication.AfterSessionComplete += delegate(Fiddler.Session oS)
{
items.Add(oS);
};
driver.Navigate().GoToUrl("http://google.comm");
FiddlerApplication.oTranscoders.ImportTranscoders(@"C:\\FiddlerCore-BasicFormats.dll");
var oExportOptions = new Dictionary<string, object>();
string filename = @"C:\output.har";
oExportOptions.Add("Filename", filename);
Fiddler.FiddlerApplication.DoExport("HTTPArchive v1.2", items.ToArray(), oExportOptions, null);
Fiddler.FiddlerApplication.Shutdown();