New issue
Advanced search Search tips

Issue 824964 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner: ----
Closed: Apr 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

unable to enable logging in headless mode

Reported by jgo...@ziprecruiter.com, Mar 22 2018

Issue description

UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0

Steps to reproduce the problem:
1. run selenium script to load a webpage
'''
from selenium import webdriver
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--enable-logging')
chrome_options.add_argument('--v=1')
chrome_options.add_argument('--user-data-dir=/tmp/user1')
chrome_options.add_argument('--headless')
chrome_options.binary_location = '/usr/bin/google-chrome-unstable'
capabilities = webdriver.DesiredCapabilities.CHROME.copy()
capabilities.update(chrome_options.to_capabilities())

driver = webdriver.Chrome(desired_capabilities=capabilities)

driver.get('https://google.com')
driver.quit()
'''

What is the expected behavior?
/tmp/user1/chrome_debug.log to be created with debug info

What went wrong?
the file /tmp/user1/chrome_debug.log is not created

Did this work before? N/A 

Chrome version: Google Chrome 66.0.3350.0 dev  Channel: stable
OS Version: Ubuntu 17.10
Flash Version: n/a

the feature works when not in headless mode.

i'd expect this to work based on the debugging documentation[1].

[1] https://www.chromium.org/for-testers/enable-logging
 
Labels: Needs-Triage-M66
Labels: Triaged-ET TE-NeedsTriageHelp
Thanks for filing the issue!

The issue seems to be out of scope for triaging from our end as the triaging process involves running a selenium script to load a webpage. Hence adding label "TE-NeedsTriageHelp" and requesting someone from "Platform>DevTools" team to have a look into it and help in triaging it further.
Components: -Platform>DevTools Internals>Headless
Status: Fixed (was: Unconfirmed)

Sign in to add a comment