Skip to content

Commit

Permalink
Fix #228: Add support to get driver status and browser name
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajesh Taneja committed Mar 1, 2016
1 parent 9435361 commit 123c43c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Selenium2Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,26 @@ 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 driver status.
*
* @return array driver status.
*/
public function getStatus()
{
return $this->webDriver->status();
}

/**
* Sets the desired capabilities - called on construction. If null is provided, will set the
* defaults as desired.
Expand Down

0 comments on commit 123c43c

Please sign in to comment.