Skip to content

com.gargoylesoftware.htmlunit.ScriptException: Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher #127

@AbdenourAchab

Description

@AbdenourAchab

I am trying to browse http://taxtest.navajocountyaz.gov/Pages/WebForm1.aspx?p=1&apn=10301003B using Java code and the latest release of HTMLUnit (version 2.37.0, which I downloaded from https://jar-download.com/artifact-search/htmlunit along with all its dependencies).

final WebClient webClient = new WebClient();
webClient.getOptions().setThrowExceptionOnScriptError(false);
webClient.setRefreshHandler(new RefreshHandler() {
	public void handleRefresh(Page page, URL url, int arg) throws IOException {
	    System.out.println("handleRefresh");
	}
});
HtmlPage page = (HtmlPage) webClient.getPage("http://taxtest.navajocountyaz.gov/Pages/WebForm1.aspx?p=1&apn=10301003B");

The last line of code throws the following exception:
com.gargoylesoftware.htmlunit.ScriptException: Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher (http://taxtest.navajocountyaz.gov/js/bootstrap.js#15)

I thought the problem was with my code. So, I sought help at https://stackoverflow.com/questions/60030255/com-gargoylesoftware-htmlunit-scriptexception-error-bootstraps-javascript-req and, according to RBRi, it "Looks like a problem inside HtmlUnit itself."

Please fix the problem in an upcoming release of HTMLUnit. In the meantime, I would appreciate a workaround for my code, including, if possible, which older release of HTMLUnit I need to revert back to avoid the problem.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    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