Skip to content

Commit 123c43c

Browse files
author
Rajesh Taneja
committed
Fix #228: Add support to get driver status and browser name
1 parent 9435361 commit 123c43c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/Selenium2Driver.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,26 @@ protected function setBrowserName($browserName = 'firefox')
9090
$this->browserName = $browserName;
9191
}
9292

93+
/**
94+
* Get the browser name
95+
*
96+
* @return string the name of the browser used.
97+
*/
98+
public function getBrowserName()
99+
{
100+
return $this->browserName;
101+
}
102+
103+
/**
104+
* Returns driver status.
105+
*
106+
* @return array driver status.
107+
*/
108+
public function getStatus()
109+
{
110+
return $this->webDriver->status();
111+
}
112+
93113
/**
94114
* Sets the desired capabilities - called on construction. If null is provided, will set the
95115
* defaults as desired.

0 commit comments

Comments
 (0)