1   package com.atlassian.pageobjects.elements;
2   
3   import java.util.List;
4   
5   /**
6    * Represents a standard select HTML components.
7    */
8   public interface SelectElement extends PageElement
9   {
10      /**
11       * All options
12       *
13       * @return all options of this select
14       */
15      List<Option> getAllOptions();
16  
17      /**
18       * Selected option of this select.
19       *
20       * @return selected option of this select
21       */
22      Option getSelected();
23  
24      /**
25       * Select given <tt>option</tt>. Options can be generated by using the (@Link Options) factory
26       *
27       * @param option option to select
28       * @return this select instance
29       */
30      public SelectElement select(Option option);
31  }