public function getTitle() { // some shorthand to make things easier to read $browser = $this->device; $log = usingLog()->startAction("retrieve the current page title"); $log->endAction("title is: " . $browser->title()); return $browser->title(); }