eyes_selenium 2.7.0 → 2.8.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: f8ba2453778c9eb7863f0d5c086033065137972a
4
- data.tar.gz: 98f3873d83dfefdf27f95c77898bf2cfb95028bf
3
+ metadata.gz: 8bda53f17529e689e03352afba4a1cbd1136842c
4
+ data.tar.gz: 236f00c59c65e2cfc9cf1a4dda3123e51d657f52
5
5
  SHA512:
6
- metadata.gz: 51556719e486c1da48c5a3c462eae36ab209c090f1eea2a62c17bd91fbf3c3203fd5e33cc7b3eb154873f6cd4268c0515f6fa9067315ef759a6b76c589201e32
7
- data.tar.gz: c5ce2f9c41eb260b2881e6b7c65b44c5a8639b5e3aff45fe37787e053cc7d6ce9eb4d93c821a6a90f596b3f1ed04eb5710902186540b46ba7388bb5808b97d40
6
+ metadata.gz: ce4ad55156e7b1f223a7e8e52c2481baf429913e3094042c2c7d10e56ddddf85153c78c25aec9bf8de50a8021350c381834c2059196620ed515d2d44b0e83abf
7
+ data.tar.gz: 64332482dafa33a07c796242c3e8bc0ee3a09ef24e543bec555a16e8c4afc77b314605d5eca8973dc42c46ab1ca632f39cccf881e9c5ea628dbcaf47e6010d3e
@@ -18,7 +18,9 @@ class Applitools::Driver
18
18
  def initialize(eyes, options)
19
19
  @driver = options[:driver]
20
20
  @eyes = eyes
21
- @remote_server_url = address_of_remote_server
21
+ # FIXME fix getting "remote address url" or remove "Screenshot taker" alltogether.
22
+ # @remote_server_url = address_of_remote_server
23
+ @remote_server_url = 'MOCK_URL'
22
24
  @remote_session_id = remote_session_id
23
25
  begin
24
26
  #noinspection RubyResolve
@@ -105,19 +107,20 @@ class Applitools::Driver
105
107
 
106
108
  private
107
109
 
108
- def address_of_remote_server
109
- # The driver's url is not available using a standard interface, so we use reflection to get it.
110
- #noinspection RubyResolve
111
- uri = URI(driver.instance_eval{@bridge}.instance_eval{@http}.instance_eval{@server_url})
112
- raise Applitools::EyesError.new('Failed to get remote web driver url') if uri.to_s.empty?
113
-
114
- webdriver_host = uri.host
115
- if %w[127.0.0.1 localhost].include?(webdriver_host) && !firefox? && !ie?
116
- uri.host = get_local_ip || 'localhost'
117
- end
118
-
119
- uri
120
- end
110
+ # FIXME Fix extraction of remote server, or remove completely if removed ScreenshotTaker
111
+ # def address_of_remote_server
112
+ # # The driver's url is not available using a standard interface, so we use reflection to get it.
113
+ # #noinspection RubyResolve
114
+ # uri = URI(driver.instance_eval{@bridge}.instance_eval{@http}.instance_eval{@server_url})
115
+ # raise Applitools::EyesError.new('Failed to get remote web driver url') if uri.to_s.empty?
116
+ #
117
+ # webdriver_host = uri.host
118
+ # if %w[127.0.0.1 localhost].include?(webdriver_host) && !firefox? && !ie?
119
+ # uri.host = get_local_ip || 'localhost'
120
+ # end
121
+ #
122
+ # uri
123
+ # end
121
124
 
122
125
  def remote_session_id
123
126
  driver.remote_session_id
@@ -1,3 +1,3 @@
1
1
  module Applitools
2
- VERSION = '2.7.0'
2
+ VERSION = '2.8.0'
3
3
  end
@@ -6,8 +6,8 @@ require 'logger'
6
6
 
7
7
  eyes = Applitools::Eyes.new
8
8
 
9
- my_webdriver = Selenium::WebDriver.for :firefox
10
- eyes.api_key = 'YOUR_API_KEY'
9
+ my_webdriver = Selenium::WebDriver.for :chrome
10
+ eyes.api_key = ENV['APPLITOOLS_API_KEY']
11
11
  eyes.log_handler = Logger.new(STDOUT)
12
12
 
13
13
  begin
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.7.0
4
+ version: 2.8.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: 2015-01-25 00:00:00.000000000 Z
11
+ date: 2015-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  version: '0'
188
188
  requirements: []
189
189
  rubyforge_project:
190
- rubygems_version: 2.4.1
190
+ rubygems_version: 2.4.6
191
191
  signing_key:
192
192
  specification_version: 4
193
193
  summary: Applitools Ruby SDK