eyes_selenium 1.14.0 → 1.15.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/eyes_selenium/eyes/region.rb +5 -5
- data/lib/eyes_selenium/version.rb +1 -1
- metadata +3 -3
@@ -2,16 +2,16 @@ class Applitools::Region
|
|
2
2
|
attr_accessor :left, :top, :height, :width
|
3
3
|
|
4
4
|
def initialize(left, top, height, width)
|
5
|
-
@left = left
|
6
|
-
@top = top
|
7
|
-
@height = height
|
8
|
-
@width = width
|
5
|
+
@left = left.round
|
6
|
+
@top = top.round
|
7
|
+
@height = height.round
|
8
|
+
@width = width.round
|
9
9
|
end
|
10
10
|
|
11
11
|
def middle_offset
|
12
12
|
mid_x = width / 2
|
13
13
|
mid_y = height / 2
|
14
|
-
Selenium::WebDriver::
|
14
|
+
Selenium::WebDriver::Point.new(mid_x.round, mid_y.round)
|
15
15
|
end
|
16
16
|
|
17
17
|
def to_hash
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eyes_selenium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.15.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -203,7 +203,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
203
203
|
version: '0'
|
204
204
|
segments:
|
205
205
|
- 0
|
206
|
-
hash: -
|
206
|
+
hash: -2476420457327612730
|
207
207
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
208
|
none: false
|
209
209
|
requirements:
|
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
212
212
|
version: '0'
|
213
213
|
segments:
|
214
214
|
- 0
|
215
|
-
hash: -
|
215
|
+
hash: -2476420457327612730
|
216
216
|
requirements: []
|
217
217
|
rubyforge_project:
|
218
218
|
rubygems_version: 1.8.25
|