Skip to content

Commit

Permalink
#228 Add support to get Selenium version and browser name
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajesh Taneja committed Feb 8, 2016
1 parent 9435361 commit e354269
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/Selenium2Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e354269

Please sign in to comment.