Lines Matching refs:option
45 foreach ($this->getOptions() as $option) {
46 if ($option->isSelected()) {
47 $selected_options[] = $option;
60 foreach ($this->getOptions() as $option) {
61 if ($option->isSelected()) {
62 return $option;
71 foreach ($this->getOptions() as $option) {
72 if ($option->getAttribute('index') === (string) $index) {
73 $this->selectOption($option);
88 foreach ($options as $option) {
89 $this->selectOption($option);
109 foreach ($options as $option) {
110 $this->selectOption($option);
120 foreach ($this->getOptions() as $option) {
121 if ($option->getText() === $text) {
122 $this->selectOption($option);
144 foreach ($options as $option) {
145 $this->selectOption($option);
165 foreach ($this->getOptions() as $option) {
166 $this->deselectOption($option);
176 foreach ($this->getOptions() as $option) {
177 if ($option->getAttribute('index') === (string) $index) {
178 $this->deselectOption($option);
193 foreach ($options as $option) {
194 $this->deselectOption($option);
206 foreach ($options as $option) {
207 $this->deselectOption($option);
219 foreach ($options as $option) {
220 $this->deselectOption($option);
226 * @param WebDriverElement $option
228 protected function selectOption(WebDriverElement $option) argument
230 if (!$option->isSelected()) {
231 $option->click();
237 * @param WebDriverElement $option
239 protected function deselectOption(WebDriverElement $option) argument
241 if ($option->isSelected()) {
242 $option->click();