0
我想捕獲結果中的所有js錯誤。 我通過phantomjs在html中注入js文件並保存輸出。但是想要在執行後捕獲結果中的所有js錯誤。如何通過硒捕獲Java對象中的PhantomJS錯誤
下面是我的代碼:
PhantomJSDriver driver = new PhantomJSDriver();
String script = <...Some script...page.injectJs('example.js').....>;
Object result = driver.executePhantomJS(script);