public function testGrabValueFrom() { $this->module->amOnPage('/form/hidden'); $result = $this->module->grabValueFrom('#action'); $this->assertEquals("kill_people", $result); $result = $this->module->grabValueFrom("descendant-or-self::form/descendant::input[@name='action']"); $this->assertEquals("kill_people", $result); $this->module->amOnPage('/form/textarea'); }