From: <th...@cy...> - 2003-07-29 21:56:50
|
Mike Bowler <mb...@Ga...> schrieb am 29.07.2003, 15:22:10: > th...@cy... wrote: > > if I run the following command, how will I know, that this operation was > > successful? > > > > HtmlSelect select; > > ... > > page = (HtmlPage)select.setSelectedAttribute(optionValue, true); > > > > According to the API documentation, there is no exception thrown. But I > > think it would be useful to throw some Exceptions at this point for > > recognizing failures. > > I don't understand what you're trying to do. What kind of a failure are > you expecting? Well, what happens if the option I want to select is no longer available? I should have the possibility to catch this error, shouldn't I? |