public function close()
    {
        $params = ['name' => $this->windowHandle];
        $command = $this->driver->factoryCommand('window', WebDriver_Command::METHOD_DELETE, $params);
        $this->driver->curl($command);
        return $this;
    }