Jiri Ondrusek created CAMEL-22945:
-------------------------------------
Summary: Camel-box: Javascript is needed during the scraping of
the box responses
Key: CAMEL-22945
URL: https://issues.apache.org/jira/browse/CAMEL-22945
Project: Camel
Issue Type: Improvement
Components: camel-box
Affects Versions: 4.18.0
Reporter: Jiri Ondrusek
I recently tried to run camel-box in Camel-quarkus against a real service. I
encountered a NullPointerException because consentForm was null
([line|https://github.com/apache/camel/blob/1a1b0db4f8a37317b3499a1dd5f1c82aefb2749f/components/camel-box/camel-box-component/src/main/java/org/apache/camel/component/box/internal/BoxConnectionHelper.java#L129]).
The consentPage contains only one div:
{quote}<div class="noscript-warning">JavaScript is currently disabled in your
browser. You must have JavaScript enabled to take full advantage of Box.</div>
{quote}
Therefore I think that the box component should allow javascript when scraping
the pages.
(Jsoup can not do that). There are some different frameworks (like Pupeteer or
Playwright)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)