public function switchToMainFrame() { // shorthand $browser = $this->device; // what are we doing? $log = usingLog()->startAction("switch to working with the main frame"); // switch to the iFrame $browser->frame(array('id' => null)); // all done $log->endAction(); }