Exemple #1
0
 public function testComplexFormsAndXPath()
 {
     $this->module->amOnPage('/login');
     $this->module->submitForm("descendant-or-self::form[@id='user_form_login']", array('email' => '*****@*****.**', 'password' => '111111'));
     $post = data::get('form');
     $this->assertEquals('*****@*****.**', $post['email']);
 }
 public function testComplexSelectorsAndForms()
 {
     $this->module->amOnPage('/login');
     $this->module->submitForm('form#user_form_login', array('email' => '*****@*****.**', 'password' => '111111'));
     $post = data::get('form');
     $this->assertEquals('*****@*****.**', $post['email']);
 }