/** * Clear input element when standard clear() does not help * * @param $element \PHPUnit_Extensions_Selenium2TestCase_Element */ protected function clearInput($element) { $element->value(''); $tx = $element->value(); while ($tx != "") { $this->test->keysSpecial('backspace'); $tx = $element->value(); } }