public function getCurrentWindowHandle()
    {
        $command = $this->driver->factoryCommand('window_handle', WebDriver_Command::METHOD_GET);
        $result = $this->driver->curl($command);
        return $result['value'];
    }