크롬 웹 드라이버에 대한 인수 service_args
에 대한 설명서를 검색했으며 다음 페이지를 찾았습니다 : here 및 here, 불행히도 내 질문에 유용한 유용한 내용이 없습니다.selenium-python chrome webdriver의 'service_args'는 무엇입니까?
그럼 service_args
인수에 대한 적절한 문서를 어디에서 찾을 수 있습니까?
크롬 웹 드라이버에 대한 인수 service_args
에 대한 설명서를 검색했으며 다음 페이지를 찾았습니다 : here 및 here, 불행히도 내 질문에 유용한 유용한 내용이 없습니다.selenium-python chrome webdriver의 'service_args'는 무엇입니까?
그럼 service_args
인수에 대한 적절한 문서를 어디에서 찾을 수 있습니까?
설명되어 있지 않은 이유는 알 수 없습니다.
하지만 대부분이 옵션은 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
service_args
가 List 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"])
하지만 문제는 남아있다 : 왜 제대로 설명되지 것입니다 ...? – Alex