Beispiel #1
0
 public function testSeeElementOnPage()
 {
     $this->module->amOnPage('/form/field');
     $this->module->seeElement('input[name=name]');
     $this->module->seeElement('descendant-or-self::input[@id="name"]');
     $this->module->dontSeeElement('#something-beyond');
     $this->module->dontSeeElement('descendant-or-self::input[@id="something-beyond"]');
 }
 public function testDontSeeElementOnPageFails()
 {
     $this->shouldFail();
     $this->module->amOnPage('/form/field');
     $this->module->dontSeeElement('descendant-or-self::input[@id="name"]');
 }