Java 与HtmlUnit列表项交互

Java 与HtmlUnit列表项交互,java,android,html,htmlunit,Java,Android,Html,Htmlunit,我有一个web表单,我正试图通过使用HtmlUnit的代码来填写它 我被困在一个列表项的交互阶段。我需要向用户显示数据,然后在网页表单中选择值,但根据API,唯一可用的方法是: String getTypeAttribute() - Returns the value of the attribute "type". String getValueAttribute() - Returns the value of the attribute "value". 如何选择列表,将其显示给

我有一个web表单,我正试图通过使用HtmlUnit的代码来填写它

我被困在一个列表项的交互阶段。我需要向用户显示数据,然后在网页表单中选择值,但根据API,唯一可用的方法是:

String  getTypeAttribute() - Returns the value of the attribute "type".  
String  getValueAttribute() - Returns the value of the attribute "value".

如何选择列表,将其显示给用户,然后接受他们的输入并将其设置到表单上?

好的,有一个htmlselect我忽略了大约十次:D对不起