Skip to content

Is HtmlUnit compatible with htmx 1.9.3 ? #614

@cmoulliard

Description

@cmoulliard

Description of the problem

Question: Is HtmlUnit compatible with htmx 1.9.3 ?

We are facing a very strange issue when bumping our project from htmx 1.9.2 to 1.9.3 as HtmlUnit - 2.7.0 reports an error as HTML Page cannot be cast to TextPage.

java.lang.ClassCastException: class com.gargoylesoftware.htmlunit.TextPage cannot be cast to class com.gargoylesoftware.htmlunit.html.HtmlPage (com.gargoylesoftware.htmlunit.TextPage and com.gargoylesoftware.htmlunit.html.HtmlPage are in unnamed module of loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @28e8dde3)

    at io.halkyon.utils.WebPageExtension$PageManager.clickOn(WebPageExtension.java:143)
    at io.halkyon.utils.WebPageExtension$PageManager.clickById(WebPageExtension.java:92)
    at io.halkyon.ApplicationsPageTest.testBindApplication(ApplicationsPageTest.java:178)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)

Such an error do not exist using htmx 1.9.2. As you can imagine this is really hard to troubleshoot as the error cannot be debugged and do not seem to take place here within the test case: https://github.com/halkyonio/primaza-poc/blob/a9e8140b0c5465543f6636dbd2a43fcc43e282a2/app/src/test/java/io/halkyon/utils/WebPageExtension.java#L143

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions