1 | <?php |
||
16 | class Select |
||
17 | { |
||
18 | /** |
||
19 | * @var PHPWebDriver_Support_WebDriverSelect |
||
20 | */ |
||
21 | protected $select; |
||
22 | |||
23 | /** |
||
24 | * @param \PHPWebDriver_WebDriverElement $elm |
||
25 | * @param PHPWebDriver_Support_WebDriverSelect|null $select |
||
26 | */ |
||
27 | public function __construct($elm, PHPWebDriver_Support_WebDriverSelect $select = null) |
||
31 | |||
32 | /** |
||
33 | * @return array |
||
34 | * @throws \PHPWebDriver_NoSuchElementWebDriverError |
||
35 | */ |
||
36 | public function getOptions() |
||
40 | |||
41 | /** |
||
42 | * @return array |
||
43 | * @throws \PHPWebDriver_NoSuchElementWebDriverError |
||
44 | */ |
||
45 | public function getSelectedOptions() |
||
49 | |||
50 | /** |
||
51 | * @return array |
||
52 | * @throws \PHPWebDriver_NoSuchElementWebDriverError |
||
53 | */ |
||
54 | public function getFirstSelectedValue() |
||
58 | |||
59 | /** |
||
60 | * @return array |
||
61 | * @throws \PHPWebDriver_NoSuchElementWebDriverError |
||
62 | */ |
||
63 | public function isMultiple() |
||
67 | |||
68 | /** |
||
69 | * @param string $value |
||
70 | * @return $this |
||
71 | * @throws \PHPWebDriver_NoSuchElementWebDriverError |
||
72 | */ |
||
73 | public function selectByValue($value) |
||
78 | |||
79 | /** |
||
80 | * @param int $index |
||
81 | * @return $this |
||
82 | * @throws \PHPWebDriver_NoSuchElementWebDriverError |
||
83 | */ |
||
84 | public function selectByIndex($index) |
||
89 | |||
90 | /** |
||
91 | * @param string $text |
||
92 | * @return $this |
||
93 | * @throws \PHPWebDriver_NoSuchElementWebDriverError |
||
94 | */ |
||
95 | public function selectByText($text) |
||
100 | |||
101 | /** |
||
102 | * @return $this |
||
103 | * @throws \PHPWebDriver_NotImplementedError |
||
104 | */ |
||
105 | public function deselectAll() |
||
110 | |||
111 | /** |
||
112 | * @param string $value |
||
113 | * @return $this |
||
114 | * @throws \PHPWebDriver_NotImplementedError |
||
115 | */ |
||
116 | public function deselectByValue($value) |
||
121 | |||
122 | /** |
||
123 | * @param int $index |
||
124 | * @return $this |
||
125 | * @throws \PHPWebDriver_NotImplementedError |
||
126 | */ |
||
127 | public function deselectByIndex($index) |
||
132 | |||
133 | /** |
||
134 | * @param string $text |
||
135 | * @return $this |
||
136 | * @throws \PHPWebDriver_NotImplementedError |
||
137 | */ |
||
138 | public function deselectByText($text) |
||
143 | } |
||
144 |