selenium chromeOptions 구성

2027 단어
chromeOptions       chrome        。     ,     chrome      (        selenium    ):

   chrome         (binary_location)

       (add_argument)

       (add_extension, add_encoded_extension)

            (add_experimental_option)

        (debugger_address)


chromeOptions = webdriver.ChromeOptions()
browser = webdriver.Chrome(chrome_options=chromeOptions)

#              
browser.set_page_load_timeout(4)  

#      
chromeOptions.add_experimental_option('excludeSwitches', ['enable-automation'])

#     :Chrome            
chromeOptions.add_argument('disable-infobars') 

#       
chromeOptions.add_argument('-headless') 

# 




좋은 웹페이지 즐겨찾기