コード例 #1
0
 /**
  * @return string
  * @throws WebDriverException
  */
 public function getTagName() {
   try {
     return $this->element->getTagName();
   } catch (WebDriverException $exception) {
     $this->dispatchOnException($exception);
   }
 }
コード例 #2
0
 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';
 }