eyes_selenium 2.29.0 → 2.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/applitools/eyes.rb +3 -2
- data/lib/applitools/selenium/driver.rb +3 -1
- data/lib/applitools/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e83693bb92c162d4ca4d47463fbc6164ce67bf2b
|
4
|
+
data.tar.gz: 7eddd971890f1b5017ec89c329d527ffdd86c6b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7217c4961313209dcb643c5c885cda288ab2169719925723295dbe5c835c16f47135fe6f5c2ac1e68bec1513e653d56e61a4b67dd65300a61cfa6351cd8dbab
|
7
|
+
data.tar.gz: 38be5652a39d72b5fa4a4d5dc1de152b1964be390acd6277cca3270eccd86b420435f4db47e7dd5ef6bfb8fbf5aca76c32b047bcba09de70e1eff647305b9f98
|
data/lib/applitools/eyes.rb
CHANGED
@@ -138,10 +138,11 @@ class Applitools::Eyes
|
|
138
138
|
elsif defined?(Appium::Driver) && driver.is_a?(Appium::Driver)
|
139
139
|
@driver = Applitools::Selenium::Driver.new(self, driver: driver.driver, is_mobile_device: true)
|
140
140
|
elsif defined?(Watir::Browser) && driver.is_a?(Watir::Browser)
|
141
|
-
|
141
|
+
is_mobile_device = driver.driver.capabilities['platformName'] ? true : false
|
142
|
+
@driver = Applitools::Selenium::Driver.new(self, driver: driver.driver, is_mobile_device: is_mobile_device)
|
142
143
|
else
|
143
144
|
unless driver.is_a?(Applitools::Selenium::Driver)
|
144
|
-
|
145
|
+
Applitools::EyesLogger.warn("Unrecognized driver type: (#{driver.class.name})!")
|
145
146
|
end
|
146
147
|
end
|
147
148
|
|
@@ -41,7 +41,9 @@ module Applitools::Selenium
|
|
41
41
|
@eyes = eyes
|
42
42
|
@browser = Applitools::Selenium::Browser.new(self, @eyes)
|
43
43
|
|
44
|
-
|
44
|
+
unless capabilities.takes_screenshot?
|
45
|
+
Applitools::EyesLogger.warn '"takes_screenshot" capability not found.'
|
46
|
+
end
|
45
47
|
end
|
46
48
|
|
47
49
|
# Returns:
|
data/lib/applitools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eyes_selenium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.30.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Applitools Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|