コード例 #1
0
 public function testCancelPopup()
 {
     $this->module->amOnPage('/form/popup');
     $this->module->click('Confirm');
     $this->module->cancelPopup();
     $this->module->see('No', '#result');
 }
コード例 #2
0
 public function testSubmitUnchecked()
 {
     $this->module->amOnPage('/form/unchecked');
     $this->module->seeCheckboxIsChecked('#checkbox');
     $this->module->uncheckOption('#checkbox');
     $this->module->click('#submit');
     $this->module->see('0', '#notice');
 }
コード例 #3
0
ファイル: WebDriverTest.php プロジェクト: Marfuz/c4t_test
 public function testAppendFieldDiv()
 {
     $this->module->amOnPage('/form/div_content_editable');
     //make sure we see 'sunrise' which is the default text in the textarea
     $this->module->see('sunrise', '#description');
     //fill in some new text and see if we can see it
     $textarea_value = 'moonrise';
     $this->module->appendField('#description', $textarea_value);
     $this->module->see('sunrise' . $textarea_value, '#description');
 }
コード例 #4
-1
 public function testScrollTo()
 {
     $this->module->amOnPage('/form/example18');
     $this->module->scrollTo('#clickme');
     $this->module->click('Submit');
     $this->module->see('Welcome to test app!');
 }