환경 설정하지만 당신은/서로 다른 내용을 차단, 허용 할 수
:
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument("--disable-infobars")
options.add_argument("--window-size=800,600")
options.add_experimental_option("prefs", { \
"profile.default_content_setting_values.media_stream_mic": 1, # 1:allow, 2:block
"profile.default_content_setting_values.media_stream_camera": 1, # 1:allow, 2:block
"profile.default_content_setting_values.geolocation": 1, # 1:allow, 2:block
"profile.default_content_setting_values.notifications": 1 # 1:allow, 2:block
})
driver = webdriver.Chrome(chrome_options=options)
이의 중복이 될 수 https://stackoverflow.com/questions/21628904/accept-permission-request-in-chrome- using-selenium? – BoboDarph
가능한 [Python/Selenium에서이 '팝업'을 닫을 수 있습니까?] (https://stackoverflow.com/questions/47716814/how-can-i-close-this-popup-in-python-selenium) – DebanjanB
@DebanjanB, 아니요, 중복되지 않습니다. –