New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HtmlUnit failing on invalid javascript #64
Comments
just made a pull request for rhino - mozilla/rhino#588 |
Much appreciated, you work fast. How do you approach updates, will you bump up the minor version and release a bugfix after the pull is accepted in rhino or wait for a feature release? |
HtmlUnit maintains a Rhino fork, if the pull request is in Rhino i usually sync the changes to core-js and make a new snapshot build available. And from time to time i make new HtmlUnit releases. |
Have you tested with the latest snapshot? |
Not yet, have attempted to clone rhino and build locally but failed. Could you share an already built package that I can add to my dependencies and replace the old one to test? |
There is no need to clone. If you are using maven/gradle, you can use the latest snapshot build. If not use the latest build from the ci server. |
Which ci server do you mean? Do not have much experience with Maven apart from downloading existing packages, and I can't see a snapshot build in https://repo.maven.apache.org/maven2/org/mozilla/rhino/ |
The ci server mentioned at the HtmlUnit homepage.... http://167.86.92.69/job/HtmlUnit/ If you like to download you can download the htmlunit-2.36.0-SNAPSHOT-bin.zip file, it contains all jar files HtmlUnit requires. If you use maven simply update your pom with
|
It seems to be throwing a different exception now. I have omitted adding the full debug log as it has 8k lines but can provide it if needed.
|
This code works here without your last error. Looks like the error only occurs if you simulate chrome.
|
You are right, did not try different browser versions, had the constructor empty which defaults to best supported. |
Opened a question at StackOverflow, opening issue here as per your suggestion.
I need to load the Discord login page but am failing on javascript exceptions.
Running Java 11 on Eclipse 2019-06 with HtmlUnit 2.35
My java code:
The full log:
The text was updated successfully, but these errors were encountered: