Beispiel #1
0
 protected function setClicked(WebDriverElement $element, $value)
 {
     $checked = (bool) $element->getAttribute('checked');
     if ((bool) $checked != (bool) $value) {
         $element->click();
     }
 }
 /**
  * @return $this
  * @throws WebDriverException
  */
 public function click()
 {
     $this->dispatch('beforeClickOn', $this);
     try {
         $this->element->click();
     } catch (WebDriverException $exception) {
         $this->dispatchOnException($exception);
     }
     $this->dispatch('afterClickOn', $this);
     return $this;
 }