2
Chrome 용 스플라인 브라우저 개체를 시작할 때 "지원되지 않는 명령 줄 플래그를 사용 중입니다 ..."라는 노란색 배너가 나타납니다. 사용하지 않고 셀렌.Selenium을 사용하여 스플린터 브라우저 열기
browser = Browser('chrome')
options = webdriver.ChromeOptions()
options.add_experimental_option("excludeSwitches", ["ignore-certificate-errors"])
browser = webdriver.Chrome(chrome_options=options)
실제로 볼 수 있듯이 브라우저는 실제로 두 번 브라우저를 시작하지만 크롬을 한 번만 표시하려고합니다. Selenium을 사용하여 Splinter 객체의 브라우저를 시작하는 방법이 있습니까?
죄송합니다, 왜 그냥 옵션 =의 webdriver.ChromeOptions() options.add_experimental_option ("excludeSwitches", [ "무시-인증서 오류"]) 브라우저 = webdriver.Chrome (chrome_options의 = 옵션), I는 브라우저없이 의미 = Browser ('chrome') –
죄송합니다. 오타가 있습니다. 마지막 행은 다음과 같아야합니다. browser.driver = webdriver.Chrome (chrome_options = options). Splinter 객체를 인스턴스화하고 싶습니다. 셀레늄 객체는 인스턴스화하지 않습니다. – wpakt