qat-web 9.0.0 → 9.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/qat/web/browser/screenshot.rb +1 -1
- data/lib/qat/web/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16d90ffc3189a2b96bb070c9dd2b2d4624dfdf90139deb0d072aca7935b980f5
|
4
|
+
data.tar.gz: 88c90b029a7e9581df0ea7eef8ebe1f0f1fd484d1bab5b13d200b163fe88dc0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bb44e1a9fedb1803b26c073de3b1b29e48a92d7da052a760cc67a55a5a3aefa02e77bc2189cbb67dcc1926191b1fa4be6d50cbd4713d1885f5c2461f9438854
|
7
|
+
data.tar.gz: 6b578633836ffe1209aae847c5ccd02352ae14b902cf2b015fc8d052b5f7cee79cd4cb097717ff6eb5286103c5b93dd594ff6c02cf0771825e9068747c3f136b
|
@@ -18,7 +18,7 @@ module QAT::Web
|
|
18
18
|
#@since 1.0.0
|
19
19
|
def take_screenshot page = Capybara.current_session , path = screenshot_path
|
20
20
|
log.info { "Saving screenshot to #{path}" }
|
21
|
-
raise ArgumentError.new "File #{path} already exists! Choose another filename" if ::File.
|
21
|
+
raise ArgumentError.new "File #{path} already exists! Choose another filename" if ::File.exist? path
|
22
22
|
path = read_screenshot_file page, path
|
23
23
|
log.info { "Screenshot available" }
|
24
24
|
path
|
data/lib/qat/web/version.rb
CHANGED