【发布时间】:2018-06-22 20:05:45
【问题描述】:
我正在为此 website 开发一个 Java 项目。我需要访问网页框架的 HTML 代码,但我似乎无法做到。
<html>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="IBM WebSphere Studio">
<META http-equiv="Content-Style-Type" content="text/css">
<TITLE>CONSULTA CAUSAS - Versión 1.15.0.0</TITLE>
</HEAD>
<frameset rows="120,0*" cols="*" framespacing="0" frameborder="NO" border="0">
<frame src="/CIVILPORWEB/jsp/General/CIV_GRL_HeadAutoconsulta.jsp" name="head" scrolling="NO" noresize marginheight="144" marginwidth="0">
<frameset rows="*" cols="174,*" framespacing="0" frameborder="NO" border="0">
<frame src="/CIVILPORWEB/jsp/Menu/Aplicacion/CIV_MNU_AtPublico.jsp" name="menu" scrolling="NO" noresize marginwidth="144">
<frame src="/CIVILPORWEB/jsp/General/CIV_GRL_Body.jsp" name="body">
</frameset>
</frameset>
<noframes>
<body>
<p></p>
</body>
</noframes>
</html>
有什么方法可以使用 HtmlUnit 访问它吗?或者可能是另一个 Java 模块?
【问题讨论】: