Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make sure we don't try to nav to a url in setuppage if we haven't set…

… one (fix #10)
  • Loading branch information...
commit 132d57229697acf7b80a260ea4377ba82d5bf2c1 1 parent aa6ad82
Jonathan Lipps authored
Showing with 5 additions and 6 deletions.
  1. +3 −5 WebDriverDemo.php
  2. +2 −1  src/Sauce/Sausage/WebDriverTestCase.php
8 WebDriverDemo.php
View
@@ -4,6 +4,9 @@
class WebDriverDemo extends Sauce\Sausage\WebDriverTestCase
{
+
+ protected $start_url = 'http://saucelabs.com/test/guinea-pig';
+
public static $browsers = array(
// run FF15 on Windows 8 on Sauce
array(
@@ -38,11 +41,6 @@ class WebDriverDemo extends Sauce\Sausage\WebDriverTestCase
//)
);
- public function setUpPage()
- {
- $this->url('http://saucelabs.com/test/guinea-pig');
- }
-
public function testTitle()
{
$this->assertContains("I am a page title", $this->title());
3  src/Sauce/Sausage/WebDriverTestCase.php
View
@@ -22,7 +22,8 @@ public function setUp()
public function setUpPage()
{
- $this->url($this->start_url);
+ if ($this->start_url)
+ $this->url($this->start_url);
}
public function setupSpecificBrowser($params)
Please sign in to comment.
Something went wrong with that request. Please try again.