Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error using Selenium Chrome Webdriver with python

hi im using chrome driver but i cant fix this error

mycode:

options = Options()
        
        options.add_argument('--disable-gpu')
        options.add_argument('--disable-dev-shm-usage')
        self.site = webdriver.Chrome(executable_path="C:\chromedriver.exe",chrome_options=options)
        
        
        self.site.get("https://sgite.com/en/site/")

error: [23468:14696:1004/232130.459:ERROR:chrome_browser_main_extra_parts_metrics.cc(228)] crbug.com/1216328: Checking Bluetooth availability started. Please report if there is no report that this ends. [23468:14696:1004/232130.468:ERROR:chrome_browser_main_extra_parts_metrics.cc(231)] crbug.com/1216328: Checking Bluetooth availability ended. [23468:14696:1004/232130.514:ERROR:chrome_browser_main_extra_parts_metrics.cc(234)] crbug.com/1216328: Checking default browser status started. Please report if there is no report that this ends. [23468:14696:1004/232130.588:ERROR:chrome_browser_main_extra_parts_metrics.cc(238)] crbug.com/1216328: Checking default browser status ended.

like image 519
saeed shiroo Avatar asked Sep 07 '25 03:09

saeed shiroo


1 Answers

If you are using Selenium with Python then add these extra options into your Selenium code-

options = webdriver.ChromeOptions()
options.add_experimental_option('excludeSwitches', ['enable-logging'])
driver = webdriver.Chrome(options=options)
like image 52
Amar Kumar Avatar answered Sep 11 '25 11:09

Amar Kumar