Skip to content

How to use HtmlForm to submit and how to use jQuery #307

@zhenxi1023

Description

@zhenxi1023

I want to use HtmlUnit to help me to submit a search form in best buy. And I could use these jQuery code in Chrome:
$("#gh-search-input").val("Apple"); $("[name=frmSearch]").submit();
And the Chrome could jump to a new page: https://www.bestbuy.com/site/brands/apple/pcmcat128500050005.c?id=pcmcat128500050005.
How could I do the same thing by HtmlUnit?
And, Best Buy page use jQuery, may I use jQuery to search dom and use event callback? How could use in the HtmlUnit?
Thanks

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