Warning Suppressions in python console

360 views
Skip to first unread message

mohammed saad

unread,
Sep 25, 2024, 11:22:58 PM9/25/24
to Selenium Users
I am getting these 2 warnings and I want to suppress these 2 in the python console window, I tried a lot of things but unable to do it, could anyone please help,

warnings: 
DevTools listening on ws://127.0.0.1:59460/devtools/browser/fc8ad05d-77b6-4a9f-a6d1-866d20f78b71
[16328:11796:0920/120907.797:ERROR:edge_auth_errors.cc(523)] EDGE_IDENTITY: Get Default OS Account failed: Error: Primary Error: kImplicitSignInFailure, Secondary Error: kAccountProviderFetchError, Platform error: 0, Error string:

[16328:11796:0920/120910.102:ERROR:fallback_task_provider.cc(127)] Every renderer should have at least one task provided by a primary task provider. If a "Renderer" fallback task is shown, it is a bug. If you have repro steps, please file a new bug and tag it as a dependency of crbug.com/739782.

Code: 

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.edge.service import Service as EdgeService
from selenium.webdriver.edge.options import Options as EdgeOptions
from selenium.webdriver.common.action_chains import ActionChains

edge_options = EdgeOptions()
edge_options.add_argument("--log-level=3")
logging.getLogger('selenium').setLevel(logging.CRITICAL)
logging.getLogger('webdriver_manager').setLevel(logging.CRITICAL)    
edge_options.add_experimental_option("excludeSwitches", ["enable-logging"])
edge_options.use_chromium = True
edge_options.add_argument("--headless")
#driver = Edge(executable_path='C:/Python3/msedgedriver.exe', options=edge_options)
#driver = Edge(executable_path='C:/Python3/msedgedriver.exe')
edge_driver_path = 'C:/Python3/msedgedriver.exe'
service = EdgeService(executable_path=edge_driver_path)
driver = webdriver.Edge(service=service, options=edge_options)
Reply all
Reply to author
Forward
0 new messages