protected function goto($screen) { $this->wrapperId = "#{$screen}Wrapper"; if ($screen === 'favorites') { $this->click('#sidebar .favorites a'); } else { $this->click("#sidebar a.{$screen}"); } $this->see($this->wrapperId); return $this; }