Description
Creating a new issue for an old problem, seen in this thread as well as this one I do understand that this issue stems directly from Chromium, but they are in no hurry to fix it. I have tried everything I can find to mitigate the issue, however it seems there has only ever been a solution that works for Chrome.
I know that the Chromium source code is out of the control of the Selenium developers, but seeing as it has been relatively solved for the Chrome webdriver, I am hoping there is a solution that can be found to fix this issue with the Edge webdriver.
I have attempted to translate the Chrome fix to Edge, but it has not fixed the issue.
A little background for my use case:
I need to open a headless browser to a page with necessary data, pull the data, log to a file, and close the browser. This process occurs for 2 web pages every 5 minutes indefinitely. Understandably, I am trying to stop it from building up thousands of unwanted log message lines.
Due to the nature of my work, I can only post the snippet below, but it still shows the log.
Thanks for your help.
Reproducible Code
import time
from selenium.webdriver import Edge
from selenium.webdriver.edge.options import Options
from selenium.webdriver.edge.service import Service
from selenium.webdriver.common.by import By
from selenium.common.exceptions import WebDriverException, NoSuchElementException
edge_options = Options()
edge_options.add_argument('--headless')
edge_options.add_argument('--log-level=3')
edge_options.add_experimental_option('excludeSwitches', ['enable-logging'])
brow = Edge(options=edge_options)
brow.get("https://www.google.com")
time.sleep(5)
brow.quit()
Debugging Logs
DevTools listening on ws://127.0.0.1:49233/devtools/browser/b002c711-da81-4618-9ae9-3d5098676b1b
ℹ️ Last known working version: N/A
Description
Creating a new issue for an old problem, seen in this thread as well as this one I do understand that this issue stems directly from Chromium, but they are in no hurry to fix it. I have tried everything I can find to mitigate the issue, however it seems there has only ever been a solution that works for Chrome.
I know that the Chromium source code is out of the control of the Selenium developers, but seeing as it has been relatively solved for the Chrome webdriver, I am hoping there is a solution that can be found to fix this issue with the Edge webdriver.
I have attempted to translate the Chrome fix to Edge, but it has not fixed the issue.
A little background for my use case:
I need to open a headless browser to a page with necessary data, pull the data, log to a file, and close the browser. This process occurs for 2 web pages every 5 minutes indefinitely. Understandably, I am trying to stop it from building up thousands of unwanted log message lines.
Due to the nature of my work, I can only post the snippet below, but it still shows the log.
Thanks for your help.
Reproducible Code
Debugging Logs
ℹ️ Last known working version:
N/A