public function switchToIFrame($name = null) {
    //TODO: check response of the calls
    if ($name === null) {
      $this->browser->popFrame();
      return;
    } else {
      $this->browser->pushFrame($name);
    }
  }