public function testGrabTextFrom() { $this->module->amOnPage('/'); $result = $this->module->grabTextFrom('h1'); $this->assertEquals("Welcome to test app!", $result); $result = $this->module->grabTextFrom('descendant-or-self::h1'); $this->assertEquals("Welcome to test app!", $result); }