Skip to content

Commit

Permalink
refactor: Improved screenshot test performance.
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed Jun 10, 2016
1 parent 0a8d1cc commit 3e547d4
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -8,7 +8,7 @@ import net.thucydides.core.annotations.BlurScreenshots
import net.thucydides.core.screenshots.BlurLevel
import org.openqa.selenium.Dimension
import org.openqa.selenium.WebDriver
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.phantomjs.PhantomJSDriver
import spock.lang.Specification

import java.nio.file.Files
Expand Down Expand Up @@ -118,7 +118,7 @@ class WhenAPhotographerTakesScreenshots extends Specification {

def setup() {
screenshotDirectory = Files.createDirectories(Paths.get("./build/screenshots"));// Files.createTempDirectory("screenshots")
driver = new FirefoxDriver()
driver = new PhantomJSDriver();//new FirefoxDriver()
driver.get(siteFromUrlAt("/static-site/unchanging-page.html"))
startTime = System.currentTimeMillis()
}
Expand Down

0 comments on commit 3e547d4

Please sign in to comment.