diff --git a/src/Selenium2Driver.php b/src/Selenium2Driver.php index 58b5102d..d23dbd9a 100755 --- a/src/Selenium2Driver.php +++ b/src/Selenium2Driver.php @@ -90,6 +90,27 @@ protected function setBrowserName($browserName = 'firefox') $this->browserName = $browserName; } + /** + * Get the browser name + * + * @return string the name of the browser used. + */ + public function getBrowserName() + { + return $this->browserName; + } + + /** + * Returns selenium version number. + * + * @return string selenium version. + */ + public function getSeleniumVersion() + { + $webdriverstatus = $this->webDriver->status(); + return $webdriverstatus['build']['version']; + } + /** * Sets the desired capabilities - called on construction. If null is provided, will set the * defaults as desired.