Check that a select field has not more than one option

Stefan Seger <[email protected]>
Newsgroups gmane.comp.web.canoo.webtest
Message-ID <[email protected]>
Hi all,

I have a little problem here with my tests. In one test case, when I choose
a specific option in a select field, a second select field gets filled
dynamically with options.

So, I want to test that the second select field has only one option. I tried
the following:

<setSelectField name="client_sign" optionIndex="0" />
<setSelectField name="owner_group" optionIndex="0" />
<not>
	<setSelectField name="owner_group" optionIndex="1" />
</not>

The problem, that Canoo gets an IndexOutOfBoundException by the attempt to
select the second option.

Are there any ideas how I can solve this?

BR,
Stefan
-- 
View this message in context: http://old.nabble.com/Check-that-a-select-field-has-not-more-than-one-option-tp31954561p31954561.html
Sent from the WebTest mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.