eyes_selenium 3.18.1 → 3.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/applitools/selenium/selenium_eyes.rb +1 -0
- data/lib/applitools/selenium/target.rb +6 -0
- data/lib/applitools/selenium/visual_grid/eyes_connector.rb +3 -0
- data/lib/applitools/selenium/visual_grid/visual_grid_eyes.rb +1 -0
- data/lib/applitools/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2405810aec21e6cc3e6f1a156954a7d11f08cda1
|
|
4
|
+
data.tar.gz: 547bbe8ccae2009b5f2490952e9af6f7531f8bf4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 01d7d9768fea60aba826d73283c900f9d8c6e7722989d24cb07c997b1268141d1dca183f4fe7b8f3358d4e359784e28704ae8b35cd9b4a6aa1d248f2e9dc0535
|
|
7
|
+
data.tar.gz: ad39a605cfe410bb028bbd57ec39837a9db61d4f722b88069ed133057b060578b82a8e95962aec77584d31034f1ed16bff73c4a91aa96f7cf32ef37c5fb50044
|
|
@@ -263,6 +263,7 @@ module Applitools::Selenium
|
|
|
263
263
|
begin
|
|
264
264
|
match_data = Applitools::MatchWindowData.new(default_match_settings)
|
|
265
265
|
match_data.tag = name
|
|
266
|
+
match_data.variation_group_id = target_to_check.options[:variation_group_id] if target_to_check.options[:variation_group_id]
|
|
266
267
|
eyes_element = target_to_check.region_to_check.call(driver)
|
|
267
268
|
|
|
268
269
|
unless force_full_page_screenshot
|
|
@@ -249,6 +249,12 @@ module Applitools
|
|
|
249
249
|
self
|
|
250
250
|
end
|
|
251
251
|
|
|
252
|
+
def variation_group_id(value)
|
|
253
|
+
Applitools::ArgumentGuard.not_nil(value, 'variation_group_id')
|
|
254
|
+
options[:variation_group_id] = value
|
|
255
|
+
self
|
|
256
|
+
end
|
|
257
|
+
|
|
252
258
|
def frame(*args)
|
|
253
259
|
element = case args.first
|
|
254
260
|
when ::Selenium::WebDriver::Element, Applitools::Selenium::Element, String
|
|
@@ -55,6 +55,9 @@ module Applitools
|
|
|
55
55
|
logger.error "Error retrieving coordinates for region #{e.region}"
|
|
56
56
|
logger.error e.message
|
|
57
57
|
end
|
|
58
|
+
|
|
59
|
+
match_data.variation_group_id = match_data.target.options[:variation_group_id] if match_data.target.options[:variation_group_id]
|
|
60
|
+
|
|
58
61
|
check_result = check_window_base(
|
|
59
62
|
dummy_region_provider, timeout, match_data
|
|
60
63
|
)
|
|
@@ -63,6 +63,7 @@ module Applitools
|
|
|
63
63
|
|
|
64
64
|
config.app_name = options[:app_name] if options[:app_name]
|
|
65
65
|
config.test_name = options[:test_name] if options[:test_name]
|
|
66
|
+
config.agent_run_id = "#{config.test_name}--#{SecureRandom.hex(10)}"
|
|
66
67
|
|
|
67
68
|
if config.viewport_size.nil? || config.viewport_size && config.viewport_size.empty?
|
|
68
69
|
config.viewport_size = Applitools::RectangleSize.from_any_argument(options[:viewport_size]) if options[:viewport_size]
|
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: 3.18.
|
|
4
|
+
version: 3.18.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Applitools Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-05-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: eyes_core
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - '='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 3.18.
|
|
19
|
+
version: 3.18.2
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - '='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 3.18.
|
|
26
|
+
version: 3.18.2
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: selenium-webdriver
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|