(https://developers.google.com/web/updates/2017/10/devtools-release-notes)멀티 클라이언트 원격 디버깅
내가 어떤 셀레늄과 크롬 DevTools로 프로토콜 HeapProfiler를 사용한다 달성하고자하는 테스트. 버전 64 Chrome 개발 채널과 ChromeDriver 2.33을 실행하고 있습니다.
ChromeOptions options = newChromeOptions();
options.addArguments("--remote-debugging-port=9222");
WebDriver driver = new ChromeDriver(options);
... selenium stuff
새로운 크롬 창이 열리고 시간이 초과 될 때까지 중단됩니다. 버전을 확인하려면 Google 크롬에 대해 도움을 받으러 Chrome 크롬 창이 열렸 음을 확인할 수 있습니다. webdriver 연결이 끊어지는 것처럼 보이는이 오류가 나타납니다. 나는 다른 크롬 창에서 http://localhost:9222을 열고 인터페이스를 디버깅 볼 수이기 때문에
Exception in thread "main" org.openqa.selenium.WebDriverException: chrome not
reachable
DevTools로 프로토콜 노력하고 있습니다.
누구나 함께이 두 가지를 얻을 수 있었습니까?
감사합니다 :)
다음
디버깅 주소는 인수가 아닌 옵션으로 제공되어야합니다. –
안녕하세요. 어떤 옵션이 될지 아십니까? 여기에 목록이 있습니다. https://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/pref_names.cc?view=markup – RapidStar
https://sites.google.com/a/chromium .org/chromedriver/capabilities –