[Webtest] Unselect preselected value in setSelectField
Marc Guillemot
Marc Guillemot <mguillemot@yahoo.fr>
Mon, 15 Oct 2007 09:51:24 +0200
Hi Mart,
you seem to be right. This possibility doesn't exist currently. Can you
please open an issue for that?
As workaround you can use a (Groovy) script step to work directly on the
HtmlUnit page model to deselect all options until issue is fixed.
Marc.
--
Blog: http://mguillem.wordpress.com
Mart Toom wrote:
> Hi,
>
> I have in the application a multi Select field that has preselected
> value and I need to verify script on page that doesn't allow to save
> this form when no values is selected.
> Unselecting preselected value can be easily done with browser by using
> ctrl button.
>
> Is it somehow possible also with WebTest?
>
> ----------------------
> <input name="_permissions" value="marker" type="hidden">
> <select name="permissions" id="permissions" style="height: 250px;"
> multiple="multiple">
>
> <option value="1" selected="selected">accept_reject</option>
>
> <option value="0">add</option>
> <option value="2">complete</option>
> <option value="4">invoice</option>
> <option value="3">view</option>
> </select>
>
> BR,
>
> Mart T
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>