Супер, спасибо!Ой, сорри, думала надо вернуть текст, а не выбрать
String[] options = getSelenium().getSelectOptions("online_course"); selenium.select("online_course", options[1]);
- Форум тестировщиков
- → Просмотр профиля: Сообщения: aaa
27 января 2011 - 12:33
Супер, спасибо!Ой, сорри, думала надо вернуть текст, а не выбрать
String[] options = getSelenium().getSelectOptions("online_course"); selenium.select("online_course", options[1]);
27 января 2011 - 12:24
с инглишем по-прежнему не айс :(
Есть решения?
Документация говорит что есть:Select an option from a drop-down using an option locator. Option locators provide different ways of specifying options of an HTMLSelect element (e.g. for selecting a specific option, or for assertingthat the selected option satisfies a specification). There are severalforms of Select Option Locator.
label=labelPattern:matches options based on their labels, i.e. the visible text. (Thisis the default.)
label=regexp:^[Oo]ther
value=valuePattern:matches options based on their values.
value=other
id=id:matches options based on their ids.
id=option1
index=index:matches an option based on its index (offset from zero).
index=2
т.е. в Вашем случае index=1
27 мая 2010 - 11:13
27 мая 2010 - 10:37
selenium.selectWindow("Currencies");
вот так не пробовали?
26 мая 2010 - 13:49
Community Forum Software by IP.Board Русификация от IBResource
Лицензия зарегистрирована на: Software-Testing.Ru