public function resizeWindow($width, $height, $name = null) {
    if ($name !== null) {
      //TODO: add this on the phantomjs stuff
      throw new DriverException("Resizing other window than the main one is not supported yet");
    }
    $this->browser->resize($width, $height);
  }