aipim-rails 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aipim-rails/parser.rb +1 -1
- data/lib/screenshot.rb +3 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be3045e18565f6bb43e45dcc4d8d5a38f87af6c2
|
4
|
+
data.tar.gz: 2155ffde62d799892a45797cb2a0946d43d58d4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6795847e185adb9af236d27648f3773c48474fdb7b5612fa8f4a18e02aaef2b663fa6eb693cc304fda61f027600f00ca4036933d80a2dee24cb4274a11bb2f85
|
7
|
+
data.tar.gz: a2a6ed4a3fbfe3c55eae4d0c060c84f2c2a6849543d229ac6e472bc1477fad1a71df63adf60860f5bc5d939d9a4ea45862c22345006b2f17d4c8a1a746f3a564
|
data/lib/aipim-rails/parser.rb
CHANGED
data/lib/screenshot.rb
CHANGED
@@ -1,13 +1,6 @@
|
|
1
1
|
require 'selenium-webdriver'
|
2
2
|
|
3
|
-
|
4
|
-
Capybara::Selenium::Driver.new(app, :browser => :firefox)
|
5
|
-
end
|
6
|
-
|
7
|
-
%x[rm ../aipim/screenshots/*]
|
8
|
-
|
9
|
-
# Other drivers are available as well http://selenium.googlecode.com/svn/trunk/docs/api/rb/Selenium/WebDriver.html#for-class_method
|
10
|
-
#driver = WebDriver.new()
|
3
|
+
%x[rm aipim/screenshots/*]
|
11
4
|
|
12
5
|
Before('@javascript') do |scenario|
|
13
6
|
page.driver.browser.manage.window.maximize
|
@@ -16,5 +9,6 @@ end
|
|
16
9
|
After('@screenshot') do
|
17
10
|
return unless page.driver.browser
|
18
11
|
sleep(1.0)
|
19
|
-
page.driver.save_screenshot("
|
12
|
+
page.driver.save_screenshot("aipim/screenshots/#{Time.now.to_i}.png")
|
20
13
|
end
|
14
|
+
|