Example #1
0
 /**
  * Retrieves the tag name
  * @return string
  */
 public function name()
 {
     return strtolower(parent::name());
 }
Example #2
0
 /**
  * Get or set value of form elements. If the element already has a value, the set one will be appended to it.
  * Created **ONLY** for keeping backward compatibility, since in selenium v2.42.0 it was removed
  * The currently recommended solution is to use `$element->attribute('value')`
  * @see https://code.google.com/p/selenium/source/detail?r=953007b48e83f90450f3e41b11ec31e2928f1605
  * @see https://code.google.com/p/selenium/source/browse/java/CHANGELOG
  *
  * @param string $newValue
  * @return null|string
  */
 public function value($newValue = NULL)
 {
     if ($newValue !== NULL) {
         return parent::value($newValue);
     }
     return $this->attribute('value');
 }
Example #3
0
 public function __construct($driver, PHPUnit_Extensions_Selenium2TestCase_URL $url, PHPUnit_Extensions_Selenium2TestCase_URL $baseUrl, PHPUnit_Extensions_Selenium2TestCase_Session_Timeouts $timeouts)
 {
     $this->baseUrl = $baseUrl;
     $this->timeouts = $timeouts;
     parent::__construct($driver, $url);
 }