public function __toString()
{
$result = "DesiredCapabilities{BrowserName = " . $this->getBrowserName();
if ($this->getVersion()) {
$result .= " Version = " . $this->getVersion();
}
if ($this->getPlatform()) {
$result .= " Platform = " . $this->getPlatform();
}
$result .= "}";
return $result;
}