eyes_selenium 1.33.0 → 1.34.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWY0MTNiMDBmZDQxNDkzMDMxZTIzNzExNjE4ZGFiYWVhOGQzZDAzMg==
4
+ MDg5ZmMzODY5MjAzMWJlYmY2YjgyMGQ2ZDM5YjFhZjdlYTFkYWZhMg==
5
5
  data.tar.gz: !binary |-
6
- NDM0MGY4Y2MyMTk2YzBhY2FiY2UyMDhiMGU4MGY0ZTg3ZmI0NzBmYw==
6
+ M2ZlM2FjYTU4ZmZmNjQ1MTdhYzA0YTJhMDkwOTM1NmZiM2VlOWZmMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjQyNTFhMGFjZjA2Y2U0ZmZmNDY0ZTdjZGUyYTVmN2Q4ZDZmMWI1MzAyN2Q0
10
- MmVlZjIwM2M0MWM1ZThlMjBlYTAzNTgyMGZhOTNhM2EyMjUwNDg3MjJlYTgx
11
- NWNmMWM4NTc5M2QxMzBiZGJhYWFmYmI2MWRmYjAxNWJjZjgzNGI=
9
+ OTJjODIwYTdiMzZlZTQzYmExOTBmMzM0MDVkY2ZlZGVkZGY2ZTUyZDliZGVh
10
+ MDBjNjgwODU0NWEyMzJkNmNkNGQzNmI0ZmY4ZDg3OTY0ZGE3MTlkZDQ4NDc5
11
+ ZDkwYWU0N2NkZThjZTFkNjViY2Y5OGQ0MTZmYmYzZjc4MThiZTA=
12
12
  data.tar.gz: !binary |-
13
- NTkyM2U2MmNmYmY5NjI5NDJkZWRmYjAzNmFiMDA1MTYzMGNmMDcyMWEyODJj
14
- YmY2ODViMTY3NGM0M2NjNmQ5YTE4MWNiNjQwNzBhM2VkNDExMDExNTczNmY3
15
- MDlhNTg4MTdhMjliMTkxNTgxNzhmZWZlMmZmZmYwMzI3NWY2MzI=
13
+ YTg4N2ZiNjI1NGQ0YjUyZTM5MmI4N2MwNDA1ZDBjOTE3ZjRiNDE1MzljZmEz
14
+ ZThjNDU5M2U4MGQ4OTYxNDA2ZWI0YTMwYTBjN2RlODgxMmVlN2VmMzBkOGUy
15
+ OTE3MTVkZDRhN2IyOTg0NDBkOWRiMDVhOWFiMDI2ZjVlOTA1OGY=
@@ -82,6 +82,7 @@ class Applitools::Eyes
82
82
  EyesLogger.info(msg) and raise Applitools::EyesError.new(msg)
83
83
  end
84
84
 
85
+ @user_inputs = []
85
86
  @app_name = params.fetch(:app_name)
86
87
  @test_name = params.fetch(:test_name)
87
88
  @failure_reports = params.fetch(:failure_reports, self.failure_reports)
@@ -101,6 +102,15 @@ class Applitools::Eyes
101
102
  end
102
103
 
103
104
  def check_region(how, what, tag=nil)
105
+ return if disabled?
106
+ # We have to start the session if it's not started, since we want the viewport size to be set before getting the
107
+ # element's position and size
108
+ raise Applitools::EyesError.new('Eyes not open') if !open?
109
+ unless session
110
+ start_session
111
+ self.match_window_task = Applitools::MatchWindowTask.new(self, agent_connector, session, driver, match_timeout)
112
+ end
113
+
104
114
  element_to_check = driver.find_element(how, what)
105
115
  location = element_to_check.location
106
116
  size = element_to_check.size
@@ -1,3 +1,3 @@
1
1
  module Applitools
2
- VERSION = '1.33.0'
2
+ VERSION = '1.34.0'
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: 1.33.0
4
+ version: 1.34.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: 2014-03-13 00:00:00.000000000 Z
11
+ date: 2014-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver