Unable to log Timeline events

98 views
Skip to first unread message

Ido Abelman

unread,
Aug 10, 2021, 11:15:28 AM8/10/21
to ChromeDriver Users
Using ChromeDriver from Selenium on Python
When I enable performance logging  (setting 'goog:loggingPrefs' on the DesiredCapabiities object to {'performance': 'ALL'}) it is my understanding that by default Network, Page and Timeline events should be logged - however I only see Page and Network events.
If I try to enable Timeline events using something like this:
chrome_options.add_experimental_option('perfLoggingPrefs', {
            'enableNetwork' : True,
            'enablePage' : True,
            "enableTimeline": True
            })
I get this:
selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: cannot parse capability: goog:chromeOptions
from invalid argument: cannot parse perfLoggingPrefs
from invalid argument: unrecognized performance logging option: enableTimeline

Any ideas?

Ido Abelman

unread,
Aug 10, 2021, 11:39:10 AM8/10/21
to ChromeDriver Users
Looking into it a little more I realized Timeline is deprecated. This is a proposed fix that I found: https://github.com/cabbiepete/browser-perf/commit/046f65f02db418c17ec2d59c43abcc0de642a60f'
However when I use this I don't seem to get events for my JS function calls which is what I'm looking for. Any idea?

Reply all
Reply to author
Forward
0 new messages