selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="SIGUNGU_NM0"]"}
(Session info: chrome=110.0.5481.177)
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
sigungu = WebDriverWait(browser,timeout=5).until(EC.presence_of_element_located((By.XPATH,'//*[@id="SIGUNGU_NM0"]')))
"Message: stale element reference: element is not attached to the page document"
셀레니움으로 웹페이지가 너무 빨리 넘어가서 생기는 오류로, 시간을 늦춰주면 되는 문제
time.sleep(2) # 추가!!