1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package net.sf.jameleon.plugin.watij.tags;
21
22 import watij.elements.HtmlElement;
23 import watij.finders.Symbol;
24
25 /***
26 * Gets a select list on the page and stores in the context.
27 *
28 * <pre><source>
29 * <testcase xmlns="jelly:jameleon" xmlns:j="jelly:core">
30 * <watij-session baseUrl="http://some.url/some/path" beginSession="true">
31 * <watij-select-list
32 * functionId="Gets a select list"
33 * how="xpath"
34 * what="//SELECT[@name='server_name']/OPTION[contains(text(), 'MWI')]"
35 * select="true/false"/>
36 * </watij-session>
37 * </testcase>
38 * </source></pre>
39 *
40 * See the javadocs on watij's {@link watij.finders.SymbolFactory SymbolFactory} for a complete list of supported symbols.
41 * @jameleon.function name="watij-select-list-option" type="action"
42 */
43 public class WatijSelectListOptionTag extends AbstractWatijGetTag {
44
45 public HtmlElement getHtmlElement(Symbol how, String what) throws Exception{
46 return ie().option(how, what);
47 }
48
49 public String getTagName(){
50 return "Option Select List";
51 }
52 }