from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
options = webdriver.ChromeOptions()
options.add_experimental_option("detach", True)
browser=webdriver.Chrome(options = options, service=Service(ChromeDriverManager().install()))
browser.get('https://www.naver.com')
selenium 버전 4.3.0 기준
options = webdriver.ChromeOptions()
options.add_experimental_option("detach", True)
코드를 넣어주면 해결
반응형
'python' 카테고리의 다른 글
python pyinstaller 파이썬 실행 파일 만들기 사용법 (0) | 2023.03.06 |
---|---|
Visual Studio Code에서 Python Extension 설치 안될 때 (0) | 2023.01.09 |
python selenium chromedriver 없이 사용하기 (0) | 2022.11.03 |
python 설치된 라이브러리 모듈 전체 버전 확인 (0) | 2022.11.03 |