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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8eb600a1b703d7494ac2ef3c062e8d8c5d3110e1
4
- data.tar.gz: f8bd75c7a205a4ee88f123bfa526d6794467f988
3
+ metadata.gz: e83693bb92c162d4ca4d47463fbc6164ce67bf2b
4
+ data.tar.gz: 7eddd971890f1b5017ec89c329d527ffdd86c6b1
5
5
  SHA512:
6
- metadata.gz: 40197eea7129826dcc60433694c50433a581e6fb17438fbfe05252ca6f88c2b8b2c16a76478e45a8b0f27c1632ef48a2228d4a309516a8c35d82a13120a7b10c
7
- data.tar.gz: 5a1c9b42716c731c3bb8ee32a912f13d7560c6c411a59d547a7cdbe87df101a0631b3ef3b62de01f39cc32c7e44837eec9c47226e5f6ae52a7f018c78aadc2d1
6
+ metadata.gz: b7217c4961313209dcb643c5c885cda288ab2169719925723295dbe5c835c16f47135fe6f5c2ac1e68bec1513e653d56e61a4b67dd65300a61cfa6351cd8dbab
7
+ data.tar.gz: 38be5652a39d72b5fa4a4d5dc1de152b1964be390acd6277cca3270eccd86b420435f4db47e7dd5ef6bfb8fbf5aca76c32b047bcba09de70e1eff647305b9f98
@@ -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
- @driver = Applitools::Selenium::Driver.new(self, driver: driver.driver)
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
- raise Applitools::EyesError.new("Driver is not a Selenium::WebDriver::Driver (#{driver.class.name})!")
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
- raise 'Incapable of taking screenshots!' unless capabilities.takes_screenshot?
44
+ unless capabilities.takes_screenshot?
45
+ Applitools::EyesLogger.warn '"takes_screenshot" capability not found.'
46
+ end
45
47
  end
46
48
 
47
49
  # Returns:
@@ -1,3 +1,3 @@
1
1
  module Applitools
2
- VERSION = '2.29.0'.freeze
2
+ VERSION = '2.30.0'.freeze
3
3
  end
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.29.0
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-24 00:00:00.000000000 Z
11
+ date: 2016-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver