2017-11-14 1 views

답변

0

설명되어 있지 않은 이유는 알 수 없습니다.

하지만 대부분이 옵션은 chromedriver에 인수를 전달하는 데 사용될 수 있습니다.

Usage: chromedriver [OPTIONS] 

Options 
    --port=PORT      port to listen on 
    --adb-port=PORT     adb server port 
    --log-path=FILE     write server log to file instead of stderr, increases log level to INFO 
    --verbose      log verbosely 
    --version      print the version number and exit 
    --silent      log nothing 
    --url-base      base URL path prefix for commands, e.g. wd/url 
    --port-server     address of server to contact for reserving a port 
    --whitelisted-ips    comma-separated whitelist of remote IPv4 addresses which are allowed to connect to ChromeDriver 
1

service_argsList of args to the chromedriver service을 통과 chromedriver 바이너리 inconjunction 사용됩니다 옵션의 목록은 다음과 같은 목록을 chromdriver 버전 2.24를 들어

chromedriver --help 

을 실행하여 볼 수 있습니다

exampl 전자는 다음과 같이이 log file path 당신이 언급 할 수 통과하는 것입니다 :

service_args=["--log-path=D:\\qc1.log"] 

코드 귀하의 라인이 될 것입니다 :

driver = webdriver.Chrome(executable_path=r'C:\Utility\BrowserDrivers\chromedriver.exe', service_args=["--log-path=D:\\qc1.log"]) 
+0

하지만 문제는 남아있다 : ​​왜 제대로 설명되지 것입니다 ...? – Alex