On Sep 16, 5:17 pm, Alexandre Gomes <
alexandre.r...@gmail.com> wrote:
> Try something like this:
>
> test("Test clicking item 2 and check it was selected.", function() {
> S("#combobox").click(); // open the combobox
> S(".item_2").visible(); // wait until item 2 is visible
> S(".item_2").click(function(){
> // check item #2 was selected
> ok(/<item_2_text>/.test(S("#combobox input[type=text]").val()), "Item #2 was
> selected.");
>
> });
> });