<s>
HtmlUnit	B-Language
is	O
a	O
headless	B-Protocol
web	I-Protocol
browser	I-Protocol
written	O
in	O
Java	B-Language
.	O
</s>
<s>
It	O
allows	O
high-level	O
manipulation	O
of	O
websites	O
from	O
other	O
Java	B-Language
code	I-Language
,	O
including	O
filling	O
and	O
submitting	O
forms	O
and	O
clicking	O
hyperlinks	O
.	O
</s>
<s>
HtmlUnit	B-Language
emulates	O
parts	O
of	O
browser	B-Application
behaviour	O
including	O
the	O
lower-level	O
aspects	O
of	O
TCP/IP	B-Protocol
and	O
HTTP	B-Protocol
.	I-Protocol
</s>
<s>
A	O
sequence	O
such	O
as	O
getPage(url )	O
,	O
getLinkWith("Click here" )	O
,	O
click( )	O
allows	O
a	O
user	O
to	O
navigate	O
through	O
hypertext	O
and	O
obtain	O
web	O
pages	O
that	O
include	O
HTML	B-Language
,	O
JavaScript	B-Language
,	O
Ajax	B-General_Concept
and	O
cookies	B-Application
.	O
</s>
<s>
This	O
headless	B-Protocol
browser	I-Protocol
can	O
deal	O
with	O
HTTPS	B-Protocol
security	O
,	O
basic	O
HTTP	B-Protocol
authentication	O
,	O
automatic	O
page	O
redirection	O
and	O
other	O
HTTP	B-Protocol
headers	O
.	O
</s>
<s>
It	O
allows	O
Java	B-Language
test	O
code	O
to	O
examine	O
returned	O
pages	O
either	O
as	O
text	O
,	O
an	O
XML	B-General_Concept
DOM	I-General_Concept
,	O
or	O
as	O
collections	O
of	O
forms	O
,	O
tables	O
,	O
and	O
links	O
.	O
</s>
<s>
The	O
goal	O
is	O
to	O
simulate	O
real	O
browsers	B-Application
;	O
namely	O
Chrome	B-Application
,	O
Firefox	B-Application
and	O
Edge	B-Application
.	O
</s>
<s>
The	O
most	O
common	O
use	O
of	O
HtmlUnit	B-Language
is	O
test	B-Application
automation	I-Application
of	O
web	O
pages	O
,	O
but	O
sometimes	O
it	O
can	O
be	O
used	O
for	O
web	B-Application
scraping	I-Application
,	O
or	O
downloading	O
website	O
content	O
.	O
</s>
<s>
It	O
can	O
be	O
configured	O
to	O
simulate	O
specific	O
Browser	B-Application
.	O
</s>
<s>
The	O
JavaScript	B-Language
support	O
is	O
still	O
not	O
complete	O
.	O
</s>
<s>
HTML	B-Language
Parsing	B-Language
,	O
</s>
