-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #541 from shmargum/chromedriver
Chromedriver support
- Loading branch information
Showing
16 changed files
with
215 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.bundle/* | ||
shots/ | ||
shots_chrome/ | ||
shots_history/ | ||
data.txt | ||
.DS_Store | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.3.3 | ||
2.4.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Wraith | ||
VERSION = "4.0.1" | ||
VERSION = "4.1.0" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
########## | ||
### NB: the paths in this YAML config are relative to the root of the Wraith directory, | ||
### as `bundle exec rspec` is run from the root. | ||
########## | ||
|
||
#Headless browser option | ||
browser: | ||
phantomjs: "chrome" | ||
|
||
# Type the name of the directory that shots will be stored in | ||
directory: 'shots_chrome' | ||
|
||
# Add only 2 domains, key will act as a label | ||
domains: | ||
afrique: "http://www.bbc.com/afrique" | ||
russian: "http://www.bbc.com/russian" | ||
|
||
#Type screen widths below, here are a couple of examples | ||
screen_widths: | ||
- 600 | ||
- 1280 | ||
|
||
#Type page URL paths below, here are a couple of examples | ||
paths: | ||
home: / | ||
home_menu: | ||
path: / | ||
selector: "#orb-nav-more" | ||
uk_index: /uk | ||
|
||
# (optional) JavaScript file to execute before taking screenshot of every path. Default: nil | ||
# before_capture: 'javascript/interact--chrome.js' | ||
# before_capture: 'javascript/wait--chrome.js' | ||
|
||
#Amount of fuzz ImageMagick will use | ||
fuzz: '20%' | ||
|
||
# (optional) The maximum acceptable level of difference (in %) between two images before Wraith reports a failure. Default: 0 | ||
threshold: 5 | ||
|
||
# (optional) Specify the template (and generated thumbnail sizes) for the gallery output. | ||
gallery: | ||
template: 'slideshow_template' # Examples: 'basic_template' (default), 'slideshow_template' | ||
thumb_width: 200 | ||
thumb_height: 200 | ||
|
||
# (optional) Choose which results are displayed in the gallery, and in what order. Default: alphanumeric | ||
# Options: | ||
# alphanumeric - all paths (with or without a difference) are shown, sorted by path | ||
# diffs_first - all paths (with or without a difference) are shown, sorted by difference size (largest first) | ||
# diffs_only - only paths with a difference are shown, sorted by difference size (largest first) | ||
# Note: different screen widths are always grouped together. | ||
mode: diffs_first |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var callback = arguments[arguments.length-1]; | ||
document.body.innerHTML = " "; | ||
document.body.style['background-color'] = 'red'; | ||
callback(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var callback = arguments[arguments.length-1]; | ||
document.body.innerHTML = " "; | ||
document.body.style['background-color'] = 'green'; | ||
callback(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var callback = arguments[arguments.length-1]; | ||
var a = document.querySelector('.some-class'); | ||
a && a.click(); | ||
setTimeout(callback, 2000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
var callback = arguments[arguments.length-1]; | ||
setTimeout(callback, 2000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters