Example #1
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');
 }