eyes_selenium 1.11.0 → 1.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,14 +1,15 @@
1
1
  class Applitools::Environment
2
2
 
3
- attr_accessor :os, :hosting_app, :display_size
4
- def initialize(os=nil, hosting_app=nil, display_size=nil)
3
+ attr_accessor :os, :hosting_app, :display_size, :inferred
4
+ def initialize(os=nil, hosting_app=nil, display_size=nil, inferred=nil)
5
5
  @os = os
6
6
  @hosting_app = hosting_app
7
7
  @display_size = display_size
8
+ @inferred = inferred
8
9
  end
9
10
 
10
11
  def to_hash
11
12
  # display_size is an Applitools::ViewportSize object
12
- { os: os, hostingApp: hosting_app, displaySize: display_size.to_hash}
13
+ { os: os, hostingApp: hosting_app, displaySize: display_size.to_hash, inferred: inferred}
13
14
  end
14
15
  end
@@ -156,8 +156,9 @@ class Applitools::Eyes
156
156
  def start_session
157
157
  assign_viewport_size
158
158
  test_batch ||= Applitools::BatchInfo.new
159
- app_env = Applitools::Environment.new(host_os, host_app, viewport_size)
160
159
  application = driver.create_application
160
+ inferred = "useragent:" + application.user_agent
161
+ app_env = Applitools::Environment.new(host_os, host_app, viewport_size, inferred)
161
162
  self.session_start_info = Applitools::StartInfo.new(AGENT_ID,
162
163
  app_name, test_name, test_batch, app_env, application,
163
164
  match_level,nil, branch_name, parent_branch_name
@@ -1,3 +1,3 @@
1
1
  module Applitools
2
- VERSION = "1.11.0"
2
+ VERSION = "1.12.0"
3
3
  end
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.11.0
4
+ version: 1.12.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: 3104339531497640663
206
+ hash: -4486815121233791113
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: 3104339531497640663
215
+ hash: -4486815121233791113
216
216
  requirements: []
217
217
  rubyforge_project:
218
218
  rubygems_version: 1.8.25