Im working on scraping News From https://finance.detik.com/indeks. I work on Windows OS with VS code as code editor. Somehow my program can open web browser but can't read WebElement and give error like this :
DevTools listening on ws://127.0.0.1:54867/devtools/browser/ed90b4ff-9d7d-40b5-974b-edfc955e2410 [6384:8844:0925/194226.820:ERROR:device_event_log_impl.cc(214)] [19:42:26.820] USB: usb_device_handle_win.cc:1048 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[6384:8844:0925/194226.821:ERROR:device_event_log_impl.cc(214)] [19:42:26.821] Bluetooth: bluetooth_adapter_winrt.cc:713 GetBluetoothAdapterStaticsActivationFactory failed: Class not registered (0x80040154)
this is my code :
from pandas.core.frame import DataFrame
from selenium import webdriver
from time import sleep
driver = webdriver.Chrome("D:\chromedriver.exe")
driver.get("https://finance.detik.com/indeks")
sleep(3)
# The code below usually results in an error WebElement not found
# ---------------------------------------------------------
article = driver.find_elements_by_class_name("just_test")
#----------------------------------------------------------
for i in article:
print(i)
driver.close()
driver.quit()
I've been looking for the solution in Failed to read descriptor from node connection: A device attached to the system is not functioning error using ChromeDriver Selenium on Windows OS but nothing work on me. I hope you guys know the answer.. Thanksss :)