You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS: Windows 7
Selenium Version: 2.53.0 .net
Browser: Google Chrome
Browser Version: 49.0.2623.87 (64 bits)
Expected Behavior -
Start Chrome driver using the option "PerformanceLoggingPreferences" to collect events from Network domain
Actual Behavior -
I am trying to launch Chrome using the option "PerformanceLoggingPreferences" but i got this error :
unknown error: perfLoggingPrefs specified, but performance logging was not enabled
Did i forgot something ? I can't find any examples with Chrome performance in .net.
This is a only way to collect network event in Chrome with webdriver ?
Steps to reproduce -
ChromePerformanceLoggingPreferences perfLogPrefs = new ChromePerformanceLoggingPreferences();
ChromeOptions options = new ChromeOptions();
perfLogPrefs.AddTracingCategories(new string[] { "devtools.timeline" });
options.PerformanceLoggingPreferences = perfLogPrefs;
options.AddAdditionalCapability(CapabilityType.EnableProfiling, true, true);
IWebDriver driver = new ChromeDriver(options);`
Thank you !.
The text was updated successfully, but these errors were encountered:
Your code is incomplete. As shown in the performance enhancement example for ChromeDriver, you need to enable specific logging preferences for performance. Your code should look like the following:
ChromePerformanceLoggingPreferences perfLogPrefs = new ChromePerformanceLoggingPreferences();
perfLogPrefs.AddTracingCategories(new string[] { "devtools.timeline" });
ChromeOptions options = new ChromeOptions();
options.PerformanceLoggingPreferences = perfLogPrefs;
// Note there is not yet a constant for "performance" as there is for other
// log types (e.g. LogType.Client), since Chrome is the only implementer
// for "performance".
options.SetLoggingPreference("performance", LogLevel.All);
IWebDriver driver = new ChromeDriver(options);`
Meta -
OS: Windows 7
Selenium Version: 2.53.0 .net
Browser: Google Chrome
Browser Version: 49.0.2623.87 (64 bits)
Expected Behavior -
Start Chrome driver using the option "PerformanceLoggingPreferences" to collect events from Network domain
Actual Behavior -
I am trying to launch Chrome using the option "PerformanceLoggingPreferences" but i got this error :
unknown error: perfLoggingPrefs specified, but performance logging was not enabled
Did i forgot something ? I can't find any examples with Chrome performance in .net.
This is a only way to collect network event in Chrome with webdriver ?
Steps to reproduce -
ChromePerformanceLoggingPreferences perfLogPrefs = new ChromePerformanceLoggingPreferences();
ChromeOptions options = new ChromeOptions();
perfLogPrefs.AddTracingCategories(new string[] { "devtools.timeline" });
options.PerformanceLoggingPreferences = perfLogPrefs;
options.AddAdditionalCapability(CapabilityType.EnableProfiling, true, true);
IWebDriver driver = new ChromeDriver(options);`
Thank you !.
The text was updated successfully, but these errors were encountered: