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