-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed
Labels
Description
🐛 Bug Report
Currently String LOGGING_PREFS is set to "loggingPrefs":
https://github.com/SeleniumHQ/selenium/blob/master/java/client/src/org/openqa/selenium/remote/CapabilityType.java#L52
I know, it was working in Chrome 71.
But it doesn't work in Chrome 75.
Chrome 75 only works when I manually use 'goog:loggingPrefs' instead of 'loggingPrefs'
To Reproduce
Here is Groovy code, which is working (returns browser logs) with Chrome 71, but returns nothing with Chrome 75:
ChromeOptions options = new ChromeOptions().addArguments(
'--headless',
'--no-sandbox',
'--disable-extensions')
LoggingPreferences logPrefs = new LoggingPreferences()
logPrefs.enable(LogType.BROWSER, Level.ALL)
options.setCapability(CapabilityType.LOGGING_PREFS, logPrefs)
driver = new ChromeDriver(options)
driver.get(Endpoints.TAGGED_PAGE_URL)
LogEntries logs = driver.manage().logs().get(LogType.BROWSER)
for (LogEntry entry : logs) {
log.info entry.message
}Expected behavior
if i replace one line in the example above, it works in Chrome 75:
options.setCapability('goog:loggingPrefs', logPrefs)Environment
OS: Mac Os Mojave
Browser: Chrome 75
Browser version: 75.0.3770.100
Browser Driver version: chromedriver 75.0.3770.8
Language Bindings version:
compile 'org.seleniumhq.selenium:selenium-java:3.14.0'
compile 'org.seleniumhq.selenium:selenium-api:3.14.0'
compile 'org.seleniumhq.selenium:selenium-chrome-driver:3.14.0'
Selenium Grid version (if applicable): n/a, using local headless Chrome