You should probably start by verifying the list contains what you expect
it to using "verifySelectField" [0]. Then you don't need to "query" its
selections.
If you're just trying to select one of the options that's not currently
selected, you could use Marc's solution [1].
However, if you must literally parse the content, you'll probably have to
resort to a scriptStep [2]:
<scriptStep description="parse options" language="javascript">
items = document.getHtmlElementsByAttribute('select', 'name',
'0.system.15').iterator();
selItem = items.next();
options = selItem.getHtmlElementsByTagName('option');
while (options.hasNext()) {
nextOption = options.next();
...
}
</scriptStep>
[0] http://webtest.canoo.com/webtest/manual/verifySelectField.html
[1] http://mguillem.wordpress.com/2007/07/25/xpath-power/
[2] http://webtest.canoo.com/webtest/manual/scriptStep.html
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest