문제

I'm using the Java bindings of GhostDriver to run Selenium acceptance tests against PhantomJS.

If one of the web pages requested by PhantomJS logs to the Javascript console via console.log, is there a way to capture or view those messages?

I'm guessing that the answer to this is forehead-slappingly simple but I can't work it out!

도움이 되었습니까?

해결책

LogEntries logs = driver.manage().logs().get("browser");
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top