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
,
Mar 23 2018
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.
,
Mar 23 2018
,
Apr 3 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/d0a7240a2fb86dab17820fb69d007c735ae91dd9 commit d0a7240a2fb86dab17820fb69d007c735ae91dd9 Author: Sami Kyostila <skyostil@chromium.org> Date: Tue Apr 03 21:21:10 2018 headless: Log to user profile directory in release builds BUG= 824964 Change-Id: I4a3fb472361b8548317c42afbe09b117e25fd178 Reviewed-on: https://chromium-review.googlesource.com/984879 Commit-Queue: Sami Kyöstilä <skyostil@chromium.org> Reviewed-by: Eric Seckler <eseckler@chromium.org> Cr-Commit-Position: refs/heads/master@{#547835} [modify] https://crrev.com/d0a7240a2fb86dab17820fb69d007c735ae91dd9/headless/lib/browser/headless_browser_context_impl.cc [modify] https://crrev.com/d0a7240a2fb86dab17820fb69d007c735ae91dd9/headless/lib/browser/headless_browser_impl.cc [modify] https://crrev.com/d0a7240a2fb86dab17820fb69d007c735ae91dd9/headless/lib/browser/headless_browser_impl.h [modify] https://crrev.com/d0a7240a2fb86dab17820fb69d007c735ae91dd9/headless/lib/headless_content_main_delegate.cc
,
Apr 4 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by susan.boorgula@chromium.org
, Mar 23 2018