HtmlUnit ignore JavaScript errors?
2022-09-02 11:53:01
我正在尝试遍历一个网站,但在他们的一个页面上,我收到此错误:
EcmaError: lineNumber=[671] column=[0] lineSource=[null] name=[TypeError] sourceName=[https://reservations.besodelsolresort.com/asp/CalendarPopup.js] message=[TypeError: Cannot read property "parentNode" from undefined (https://reservations.besodelsolresort.com/asp/CalendarPopup.js#671)]
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property "parentNode" from undefined (https://reservations.besodelsolresort.com/asp/CalendarPopup.js#671)
无论如何,我可以忽略此错误吗?我不是特别关心日历是否正确加载。