Skip to content
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

TypeError: Cannot modify readonly property: constructor #537

Closed
basimons opened this issue Dec 22, 2022 · 3 comments
Closed

TypeError: Cannot modify readonly property: constructor #537

basimons opened this issue Dec 22, 2022 · 3 comments

Comments

@basimons
Copy link

I have been using htmlUnit on this specific website for a while to test our SAML login flow. A few days ago the test suddenly broke, without any changes from our end. Something probably changed on the website, but it is not working anymore. I was using 2.65.0 and updated to 2.67.0 to see if it fixed it, but unfortunately doesn't seem to do the trick.

A minimally reproducable example:

WebClient webClient = new WebClient(BrowserVersion.BEST_SUPPORTED);
webClient.getOptions().setThrowExceptionOnScriptError(false);
webClient.getOptions().setJavaScriptEnabled(true);

webClient.getPage("https://dev-43246762.okta.com/home/dev-43246762_blockbaxtest_1/0oa1a0d285rc8xFaS5d7/aln1a0gob9YTeiQMJ5d7");
webClient.waitForBackgroundJavaScript(10000);
HtmlPage okta = (HtmlPage) webClient.getCurrentWindow().getEnclosedPage();
webClient.waitForBackgroundJavaScript(10000);

Hope this is helpful, if not feel free to ask for more information.

@rbri
Copy link
Member

rbri commented Dec 22, 2022

Looks like an duplicate of #238.
@basimons can you please try with the latest snapshot and report your observations here

@basimons
Copy link
Author

That indeed fixes it! Thanks a lot for your quick feedback.

Do you have any idea when 2.68.0 will be released?
If its soon I'll just wait with adding the snapshot to production and update it once released.

@rbri
Copy link
Member

rbri commented Dec 22, 2022

the plan is to do it this year :-)
maybe after xmas.

@rbri rbri closed this as completed Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants