Fixing ChromeDriver and Selenium Chrome error – Getting Default Adapter failed

ChromeDriver and Selenium Chrome error – Getting Default Adapter failed is an error which occurs in some cases because of compatibility issues between ChromeDriver, chrome and Selenium.

In the blog post I attempt to explain why this error takes place and how you can solve it, I will also add other solutions that could solve the error if possible.

Exploring the ChromeDriver and Selenium Chrome error – Getting Default Adapter failed

This is an error which occurs in some cases because of compatibility issues between ChromeDriver, chrome and Selenium.

Please double check so you can avoid mixing between errors. The error message should look like the error message bellow.

                                                                       #
[ERROR:device_event_log_impl.cc(162)] [] Bluetooth: bluetooth_adapter_winrt.cc:1055 Getting Default Adapter failed.
                                                                       #

Bellow we will describe how the error can be solved. With multiple possible solutions.

Solution 1 : Fix the issues related to your Bluetooth device

There are many reasons why this error takes places, the first reason is compatibility problems between selenium, ChromeDriver and the browser you are using. Sometimes the error occurs because of an issue with or the absence of a Bluetooth device.

You can try two options, the first one is to switch your device’s Bluetooth on.

If that did not work try to run cmd as an administrator. This might solve the issue for many cases, you do not have to try these fixes unlike your error message looks like this.

                                                                       #
Bluetooth: bluetooth_adapter_winrt.cc:1055 Getting Default Adapter failed.
                                                                       #

If the two options above did not work, try the method bellow.

Solution 2 : Fix compatibility issues between ChromeDriver, chrome and Selenium

The way to solve the compatibility problems is to make sure ChromeDriver, the chrome browser and Selenium are up-to-date.

You should check out the Compatibility between ChromeDriver and chrome using the official compatibility matrix bellow.

https://sites.google.com/a/chromium.org/chromedriver/downloads

If you update Chrome, ChromeDriver and Selenium to the latest version. But if the error still persists you can still ignore completely supress the error by using “enable-logging” like in the example bellow.

                                                                       #
options.add_experimental_option("excludeSwitches", ["enable-logging"])
driver = webdriver.Chrome(.......)
                                                                       #

If you tried the methods above and the error is gone, congratulations. Thank you for reading this blog post.

Summing-up : 

This is the end of this article, I hope we helped you solve the error : ChromeDriver and Selenium Chrome error Getting Default Adapter failed . Or at least show you why it happens and guided you in the right direction. If you want to help, you can donate to our Kofi account.

Thank you for reading, keep coding and cheers. If you want to learn more about Python, please check out the Python Documentation : https://docs.python.org/3/