/**
  * @return PHPUnit_Extensions_Selenium2TestCase_Element_Select
  */
 public function select(PHPUnit_Extensions_Selenium2TestCase_Element $element)
 {
     $tag = $element->name();
     if ($tag !== 'select') {
         throw new InvalidArgumentException("The element is not a `select` tag but a `{$tag}`.");
     }
     return PHPUnit_Extensions_Selenium2TestCase_Element_Select::fromElement($element);
 }
 /**
  * @return PHPUnit_Extensions_Selenium2TestCase_Element_Select
  */
 public function select(PHPUnit_Extensions_Selenium2TestCase_Element $element)
 {
     return PHPUnit_Extensions_Selenium2TestCase_Element_Select::fromElement($element);
 }
Beispiel #3
0
 /**
  * @param string $value
  * @param string $elementId
  * @param integer $timeout
  *
  * @return \PHPUnit_Extensions_Selenium2TestCase_Element
  */
 public function selectOptionByValueOfElementById($value, $elementId, $timeout = 0)
 {
     $element = $this->clickDisplayedElementByID($elementId, $timeout);
     \PHPUnit_Extensions_Selenium2TestCase_Element_Select::fromElement($element)->selectOptionByValue($value);
     return $element;
 }
Beispiel #4
0
 public function selectOptionByValue(PHPUnit_Extensions_Selenium2TestCase_Element $element, $value)
 {
     PHPUnit_Extensions_Selenium2TestCase_Element_Select::fromElement($element)->selectOptionByValue($value);
 }