lapis_lazuli 1.0.1 → 1.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acc1b88aff0413c88e8412acb1711d658ed95296
|
4
|
+
data.tar.gz: 975355ed0485937425bf8c7587f8307dc5f0c325
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e88f50559f3920ef4a84eed8e9814f1f0e74a0bfaff0ed6ff145d5acd56ae2fe09e5a57bf8c37590bc314c7bb5a362c47c076323850af07ec7be149b35030550
|
7
|
+
data.tar.gz: 07c4635c25047b9aeabe94826b8d4472178630dd8f878c953f3dc757105b540b9785fcd142607ffebd1f956bbf67dae5eb6b0d4dfad91455197d3e32c49b003e
|
data/lapis_lazuli.gemspec
CHANGED
@@ -48,7 +48,7 @@ Gem::Specification.new do |spec|
|
|
48
48
|
spec.add_dependency "rspec", "~> 3.5"
|
49
49
|
|
50
50
|
# webdriver specifics
|
51
|
-
spec.add_dependency "selenium-webdriver", "
|
51
|
+
spec.add_dependency "selenium-webdriver", ">= 2"
|
52
52
|
spec.add_dependency "watir", "~> 6"
|
53
53
|
spec.add_dependency "cucumber", "~> 2"
|
54
54
|
|
@@ -114,9 +114,9 @@ module BrowserModule
|
|
114
114
|
# Catch the default error and add the selectors to it.
|
115
115
|
unless throw === false
|
116
116
|
# Only raise an error if :throw is not false
|
117
|
-
raise "#{e.message} with selectors: #{options[:selectors]}"
|
117
|
+
raise LapisLazuli::TimeoutError, "#{e.message} with selectors: #{options[:selectors]}"
|
118
118
|
end
|
119
|
-
rescue
|
119
|
+
rescue LapisLazuli::TimeoutError => err
|
120
120
|
options[:exception] = err
|
121
121
|
options[:message] = optional_message('Error in wait', options)
|
122
122
|
world.error(options)
|
@@ -125,10 +125,17 @@ module BrowserModule
|
|
125
125
|
|
126
126
|
# Filter out any nil results
|
127
127
|
filter_results = results.select {|i| not i.nil?}
|
128
|
+
# Error handling
|
129
|
+
if not err.nil? and filter_results.empty?
|
130
|
+
options[:exception] = err
|
131
|
+
world.error(options)
|
132
|
+
end
|
128
133
|
|
129
134
|
# Set if the underlying find function returns single results
|
130
135
|
if has_single
|
131
|
-
|
136
|
+
# In chrome, somehow results can be no array, but still has_single is true
|
137
|
+
return results[0] if results.kind_of?(Array)
|
138
|
+
return results
|
132
139
|
end
|
133
140
|
return results
|
134
141
|
end
|
@@ -1,4 +1,13 @@
|
|
1
|
+
################################################################################
|
2
|
+
# Copyright <%= config[:year] %> spriteCloud B.V. All rights reserved.
|
3
|
+
# Generated by LapisLazuli, version <%= config[:lapis_lazuli][:version] %>
|
4
|
+
# Author: "<%= config[:user] %>" <<%= config[:email] %>>
|
5
|
+
#
|
6
|
+
# Ask developer of testsuite to add profiles where desired.
|
7
|
+
# This file defines predefined profiles that can be used.
|
8
|
+
# Example > Cucumber -t @homepage -p default -p localhost
|
1
9
|
|
10
|
+
<%% timestamp = Time.now.strftime("%Y%m%d_%H%M") %>
|
2
11
|
|
3
12
|
################################################################################
|
4
13
|
# Type of testrun
|
data/lib/lapis_lazuli/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lapis_lazuli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Onno Steenbergen
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2017-03-
|
14
|
+
date: 2017-03-02 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|
@@ -213,16 +213,16 @@ dependencies:
|
|
213
213
|
name: selenium-webdriver
|
214
214
|
requirement: !ruby/object:Gem::Requirement
|
215
215
|
requirements:
|
216
|
-
- - "
|
216
|
+
- - ">="
|
217
217
|
- !ruby/object:Gem::Version
|
218
|
-
version: '
|
218
|
+
version: '2'
|
219
219
|
type: :runtime
|
220
220
|
prerelease: false
|
221
221
|
version_requirements: !ruby/object:Gem::Requirement
|
222
222
|
requirements:
|
223
|
-
- - "
|
223
|
+
- - ">="
|
224
224
|
- !ruby/object:Gem::Version
|
225
|
-
version: '
|
225
|
+
version: '2'
|
226
226
|
- !ruby/object:Gem::Dependency
|
227
227
|
name: watir
|
228
228
|
requirement: !ruby/object:Gem::Requirement
|