0
크롬을 내 맞춤 프록시/포트로 시작하고 싶습니다. 나는이 같은 셀레늄를 시작맞춤 프록시가있는 셀렌
java -Dwebdriver.chrome.driver="node_modules/webdriver-manager/selenium/chromedriver" -jar node_modules/webdriver-manager/selenium/selenium-server-standalone-2.53.1.jar -port 5555 > log.txt &
그리고 난 theese 인수 프록시/포트를 설정하고있다 :
-Dhttp.proxyHost=http://xx.xxx.xx.xxx -Dhttp.proxyPort=8080
하지만 나던 작동하는 것 같다.
또한 내가 tryied :"capabilities":
{
"browserName": 'chrome',
//"chromeOptions": {"binary": "/opt/bamboo1/bamboo-agent-home/xml-data/build-dir/PP-AT-TES/opt/google/chrome/chrome"}
//"chromeOptions": {"binary": "/opt/google/chrome/chrome"}
'proxy':{
'proxyType': 'MANUAL',
'httpProxy': 'http://xx.xxx.xx.xxx:8080',
'sslProxy': 'http://xx.xxx.xx.xxx:8080'
}
}
는 이 페이지의 하단에 보라 http://www.seleniumhq.org/docs/04_webdriver_advanced.jsp 그것은 당신을 위해 일을 생각하고 거기에 몇 가지 예제를 가지고 – Jsmith2800