반응형 Selenium2 python selenium synchronous xmlhttprequest on the main thread is deprecated 해결 방법 파이썬에서 selenium 패키지, chromedriver.exe를 이용하여 웹페이지 스크래핑 중 다음과 같은 로그가 나오는 경우가 있습니다. selenium synchronous xmlhttprequest on the main thread is deprecated 에러는 아니기에 동작에는 큰 문제가 없지만 찾아보니 딱히 해결책이 없는 것 같습니다. webdriver를 사용할 때 다음과 같은 옵션을 넣어 deprecated 문구가 보이지 않도록 처리했습니다. options = Options() options.add_argument('--headless') options.add_argument('--hide-scrollbars') options.add_argument('--disable-gpu') opti.. 2021. 8. 19. [selenium] selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 83 XX Python으로 selenium 사용할 때 발생 에러 해결 방법 selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 83 XX 위와 같은 버전 에러가 나는 이유는 selenium을 통해 실행한 webdriver 버전과 실제 내 크롬브라우저 버전이 다르기 때문 1. 현재 사용중인 크롬 버전 확인 브라우저 창에 아래 주소 입력하면 바로 크롬 버전 확인 가능 chrome://settings/help 2. 사용할 웹드라이버 버전 https://chromedriver.chromium.org/downloads Do.. 2020. 5. 10. 이전 1 다음 반응형