Skip to content

Commit

Permalink
Fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
jleyba committed May 6, 2014
1 parent d9538be commit 1a06857
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.openqa.selenium.testing.JUnit4TestBase;

import org.junit.Before;
Expand All @@ -15,6 +16,8 @@ public class SafariTestBase extends JUnit4TestBase {
@Override
public void createDriver() {
driver = actuallyCreateDriver(DesiredCapabilities.safari());
wait = new WebDriverWait(driver, 30);
shortWait = new WebDriverWait(driver, 5);
}

public static WebDriver actuallyCreateDriver(Capabilities capabilities) {
Expand Down

0 comments on commit 1a06857

Please sign in to comment.