From: Danny Y. <dy...@ac...> - 2003-12-17 19:59:49
|
On Dec 17, 2003, at 9:28 AM, Vijay Narayanasamy wrote: > I am having difficulties using HtmlSelect for simulating the following > dropdown menu. Hi Vijay, There's a method called getOption(int i) that looks like it should do the trick. Or you can run through all the options with getAllOptions(), and choose the right one by looking at each option's getValueAttribute(), I think. > The Options have no Value. > > <SELECT NAME="MAXDOCS"> > > <OPTION >25 > > <OPTION SELECTED>50 > > <OPTION >100 > > <OPTION >250 > > <OPTION >500 > > </SELECT> From what I understand, the value of each option should default to the text content. So you should see those four options, and each com.gargoylesoftware.htmlunit.html.HtmlOption should have a getValueAttribute(). Good luck to you! |