Looking to enable "Preserve log" with chromedriver. https://sites.google.com/a/chromium.org/chromedriver/capabilities loggingPrefs points to google code archive page and is not very helpful.
My overall goal is to parse logs during test execution looking for errors, but logs get cleared on page navigation which may happen multiple times during test.
I can think of couple non-ideal workarounds:
- parse log on every page navigation
- log to file and parse log later
Both are not ideal, so looking for the easiest way.
This question is similar to Enable "Preserve log" in chrome programmatically using chromedriver - but over there the answer seems to be around logging redirects via performance logging, not preserving log on navigation.