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 +4 -4
- data/lib/eyes_selenium/eyes/driver.rb +17 -14
- data/lib/eyes_selenium/version.rb +1 -1
- data/test_script.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bda53f17529e689e03352afba4a1cbd1136842c
|
4
|
+
data.tar.gz: 236f00c59c65e2cfc9cf1a4dda3123e51d657f52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
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
|
data/test_script.rb
CHANGED
@@ -6,8 +6,8 @@ require 'logger'
|
|
6
6
|
|
7
7
|
eyes = Applitools::Eyes.new
|
8
8
|
|
9
|
-
my_webdriver = Selenium::WebDriver.for :
|
10
|
-
eyes.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.
|
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-
|
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.
|
190
|
+
rubygems_version: 2.4.6
|
191
191
|
signing_key:
|
192
192
|
specification_version: 4
|
193
193
|
summary: Applitools Ruby SDK
|