From: Rahul J. <rah...@sp...> - 2003-08-20 19:47:11
|
I had tried fakeselectedAttribute() but it is not working? Can anyone help me how should I go about debugging/figuring out=20 the problem .. -Rahul -----Original Message----- From: th...@cy... [mailto:th...@cy...] Sent: Wednesday, August 20, 2003 5:30 AM To: Rahul Joshi Cc: htm...@li... Subject: Re: [HtmlUnit] Help with regard to HtmlSelect Rahul Joshi <rah...@sp...> schrieb am 20.08.2003, 00:09:24: > Hi, >=20 > Is there anyway to add option elements to a HtmlSelect ? > In the original HTML , there is a java script that moves in options > into a HtmlSelect that is initally empty. However I am running into > problems with the java script. > So I was thinking to do it programatically by moving in options > into the HtmlSelect. Is there any way? There might be. I didn't try it myself, but you might want to test using the method 'fakeSelectedAttribute' of the class HtmlSelect. According to the API documentation it should do exactly what you want.=20 best regards Thomas Bartz |