Skip to content

Commit

Permalink
Allow the driver to report what browser it's using
Browse files Browse the repository at this point in the history
  • Loading branch information
Eileen Xie committed May 14, 2014
1 parent e722435 commit ff5be56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions WebDriver/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ public static function InitAtLocal($port, $browser, $additional_options = array(
return self::InitAtHost('localhost', $port, $browser, $additional_options);
}

public function get_browser() {
return $this->browser;
}

public function running_at_sauce() {
return (strpos($this->server_url, "saucelabs.com") !== false);
}
Expand Down

0 comments on commit ff5be56

Please sign in to comment.