Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

502
Visualizações
Javascript: How Can I Fix The GetDefaultBrowser() error on Selenium using Chrome driver?

Below is my Javascript code and I'm using it for my discord bot. This is my first time trying web scrapping, so I might need extra explanation of functions.

const webdriver = require('selenium-webdriver');
const {Builder,By,Key,until} = require('selenium-webdriver');
const chrome = require('selenium-webdriver/chrome');
const url = 'https://www.naver.com/'
const print = console.log;

exports.main = function(args){
    var driver = new webdriver.Builder()
        .withCapabilities(webdriver.Capabilities.chrome())
        .build();
    driver.get(url);
    var titlename = driver.findElement(By.xpath('/html/body/div[2]/div[1]/div/img'));
    titlename.then(function(value){
        value.getText().then(function(titlename){
            print(titlename)
        })
    })
}

The error message I got is shown below:

[12216:7056:0207/124916.024:ERROR:chrome_browser_main_extra_parts_metrics.cc(227)] START: ReportBluetoothAvailability(). If you don't see the END: message, this is 
crbug.com/1216328.
[12216:7056:0207/124916.025:ERROR:chrome_browser_main_extra_parts_metrics.cc(230)] END: ReportBluetoothAvailability()
[12216:7056:0207/124916.025:ERROR:chrome_browser_main_extra_parts_metrics.cc(235)] START: GetDefaultBrowser(). If you don't see the END: message, this is crbug.com/1216328.
[12216:9360:0207/124916.027:ERROR:device_event_log_impl.cc(214)] [12:49:16.027] USB: usb_device_handle_win.cc:1049 Failed to read descriptor from node connection: 
[12216:9360:0207/124916.030:ERROR:device_event_log_impl.cc(214)] [12:49:16.030] USB: usb_device_handle_win.cc:1049 Failed to read descriptor from node connection:  
[12216:7056:0207/124916.032:ERROR:chrome_browser_main_extra_parts_metrics.cc(239)] END: GetDefaultBrowser()

Please help me how to fix this error. I tried re-installing Chrome and Chrome driver and I checked the version of both.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda