henry-dummy 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/henry-dummy.gemspec +1 -1
- data/lib/henry/navigator.rb +2 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6cb5f970ec6d8f6401a8f713f24cd9cb06f4683
|
4
|
+
data.tar.gz: f1705cd4b88ae321e3a13299c16efb7da914772b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caa91a51ce4d0e67de7274f0682fe85b6e73a14b1e97a0fcfdacddf57fb74a62c62c76fd0ca5db4f8c3ed7b24ac6ceb8acf87af0eda436670352bf160ae0ea5b
|
7
|
+
data.tar.gz: 2f8ab91e7bdbc5ffd2670a93601fa68f1107913f8defd5ce4a430741a26a3f0fb7b4b12fe5e92d7c8074e62172a2150377a3160aa082dd0581b39c2a40e36d3c
|
data/henry-dummy.gemspec
CHANGED
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
|
|
5
5
|
s.homepage = 'http://gitlab.despegar.it/henry-self-test/ruby-crash-dummy'
|
6
6
|
s.name = 'henry-dummy'
|
7
7
|
s.summary = 'Henry library to recreate testing scenarios.'
|
8
|
-
s.version = '0.0.
|
8
|
+
s.version = '0.0.17'
|
9
9
|
|
10
10
|
s.require_paths = ['lib']
|
11
11
|
|
data/lib/henry/navigator.rb
CHANGED
@@ -1,6 +1,3 @@
|
|
1
|
-
require 'watir-webdriver'
|
2
|
-
require 'watir'
|
3
|
-
|
4
1
|
module Henry
|
5
2
|
|
6
3
|
# Defines a common interface for managing bowsers.
|
@@ -12,6 +9,8 @@ module Henry
|
|
12
9
|
|
13
10
|
def initialize(driver)
|
14
11
|
@driver = DRIVERS[driver] || driver
|
12
|
+
|
13
|
+
require @driver.match(/^ie$/i) ? 'watir' : 'watir-webdriver'
|
15
14
|
end
|
16
15
|
|
17
16
|
# Closes the curretn browser
|