public function testKeys()
 {
     $this->module->amOnPage('/form/field');
     $this->module->pressKey('#name', array('ctrl', 'a'), WebDriverKeys::DELETE);
     $this->module->pressKey('#name', 'test', array('shift', '111'));
     $this->module->pressKey('#name', '1');
     $this->module->seeInField('#name', 'test!!!1');
 }
Esempio n. 2
0
 public function testSeeInFieldTextarea()
 {
     $this->module->amOnPage('/form/textarea');
     //make sure we see 'sunrise' which is the default text in the textarea
     $this->module->seeInField('#description', 'sunrise');
     //fill in some new text and see if we can see it
     $textarea_value = 'test string';
     $this->module->fillField('#description', $textarea_value);
     $this->module->seeInField('#description', $textarea_value);
 }
 /**
  * @Issue 2921
  */
 public function testSeeInFieldForTextarea()
 {
     $this->module->amOnPage('/form/bug2921');
     $this->module->seeInField('foo', 'bar baz');
 }