We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am using .net(c#) with Selenium for capturing the network log I have Firefox Developer Edition 69
FirefoxProfile profile = new FirefoxProfile(); var allProfiles = new FirefoxProfileManager(); profile = allProfiles.GetProfile("Selenium");
string harExport = "C:/Users/testUser/Desktop/harexport/harexporttrigger-0.5.0-beta.10.xpi"; profile.AddExtension(harExport);
profile.SetPreference("extensions.netmonitor.har.contentAPIToken", "test"); profile.SetPreference("extensions.netmonitor.har.autoConnect", true); profile.SetPreference("devtools.netmonitor.har.defaultLogDir", "C:\Users\TestUser\AppData\Roaming\Mozilla\Firefox\Profiles\x7z2jjfb.Selenium"); profile.SetPreference("devtools.netmonitor.har.enableAutoExportToFile", true); profile.SetPreference("devtools.netmonitor.har.forceExport", true); fireFoxoptions.Profile = profile;
/// code to Generate har File string sessionHar = " var options = { token: "test"}; " + "HAR.triggerExport(options).then(result => { });"; if (WebDriver != null) { ((IJavaScriptExecutor)WebDriver).ExecuteScript(sessionHar); }
However its not creating a Har file under my profile when I execute the script from console
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am using .net(c#) with Selenium for capturing the network log
I have Firefox Developer Edition 69
FirefoxProfile profile = new FirefoxProfile();
var allProfiles = new FirefoxProfileManager();
profile = allProfiles.GetProfile("Selenium");
string harExport = "C:/Users/testUser/Desktop/harexport/harexporttrigger-0.5.0-beta.10.xpi";
profile.AddExtension(harExport);
profile.SetPreference("extensions.netmonitor.har.contentAPIToken", "test");
profile.SetPreference("extensions.netmonitor.har.autoConnect", true);
profile.SetPreference("devtools.netmonitor.har.defaultLogDir", "C:\Users\TestUser\AppData\Roaming\Mozilla\Firefox\Profiles\x7z2jjfb.Selenium");
profile.SetPreference("devtools.netmonitor.har.enableAutoExportToFile", true);
profile.SetPreference("devtools.netmonitor.har.forceExport", true);
fireFoxoptions.Profile = profile;
/// code to Generate har File
string sessionHar = " var options = { token: "test"}; " +
"HAR.triggerExport(options).then(result => { });";
if (WebDriver != null)
{
((IJavaScriptExecutor)WebDriver).ExecuteScript(sessionHar);
}
However its not creating a Har file under my profile
when I execute the script from console
The text was updated successfully, but these errors were encountered: