/**
  * @param $attribute_name
  * @return string
  * @throws WebDriverException
  */
 public function getAttribute($attribute_name) {
   try {
     return $this->element->getAttribute($attribute_name);
   } catch (WebDriverException $exception) {
     $this->dispatchOnException($exception);
   }
 }
 public function __construct(WebDriverElement $element)
 {
     $tag_name = $element->getTagName();
     if ($tag_name !== 'select') {
         throw new UnexpectedTagNameException('select', $tag_name);
     }
     $this->element = $element;
     $value = $element->getAttribute('multiple');
     $this->isMulti = $value === 'true';
 }