gridium 0.2.6 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +51 -0
- data/{LICENSE.txt → LICENSE} +6 -6
- data/gridium.gemspec +1 -1
- data/lib/element.rb +4 -3
- data/lib/gridium/version.rb +1 -1
- metadata +4 -5
- data/.travis.yml +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0760717c783e365d6af7f505001cc465de38fb54
|
4
|
+
data.tar.gz: 4f49bca1f7cfba116f17912dd9e59e79156a7f09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72f5b466294567a7028d0623c395f6fccfcfb70c5346910d39e1a7a782733d71ba84e73a0733176050420b5bdeb3aa887dd076afdefe3be36a0a25b5aee98c8c
|
7
|
+
data.tar.gz: 71712e430341993dab8522938572af4b804f21a8d04c08b9b63f83d68feefba9e22d11faf87e9a790eb46c77574a2919fd6684b07c21680de76d56cabb072a9a
|
data/.gitignore
CHANGED
@@ -10,3 +10,54 @@
|
|
10
10
|
/.idea/
|
11
11
|
*.gem
|
12
12
|
Dockerfile-e
|
13
|
+
=======
|
14
|
+
*.gem
|
15
|
+
*.rbc
|
16
|
+
/.config
|
17
|
+
/coverage/
|
18
|
+
/InstalledFiles
|
19
|
+
/pkg/
|
20
|
+
/spec/reports/
|
21
|
+
/spec/examples.txt
|
22
|
+
/test/tmp/
|
23
|
+
/test/version_tmp/
|
24
|
+
/tmp/
|
25
|
+
|
26
|
+
# Used by dotenv library to load environment variables.
|
27
|
+
# .env
|
28
|
+
|
29
|
+
## Specific to RubyMotion:
|
30
|
+
.dat*
|
31
|
+
.repl_history
|
32
|
+
build/
|
33
|
+
*.bridgesupport
|
34
|
+
build-iPhoneOS/
|
35
|
+
build-iPhoneSimulator/
|
36
|
+
|
37
|
+
## Specific to RubyMotion (use of CocoaPods):
|
38
|
+
#
|
39
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
40
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
41
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
42
|
+
#
|
43
|
+
# vendor/Pods/
|
44
|
+
|
45
|
+
## Documentation cache and generated files:
|
46
|
+
/.yardoc/
|
47
|
+
/_yardoc/
|
48
|
+
/doc/
|
49
|
+
/rdoc/
|
50
|
+
|
51
|
+
## Environment normalization:
|
52
|
+
/.bundle/
|
53
|
+
/vendor/bundle
|
54
|
+
/lib/bundler/man/
|
55
|
+
|
56
|
+
# for a library or gem, you might want to ignore these files since the code is
|
57
|
+
# intended to run in multiple environments; otherwise, check them in:
|
58
|
+
# Gemfile.lock
|
59
|
+
# .ruby-version
|
60
|
+
# .ruby-gemset
|
61
|
+
|
62
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
63
|
+
.rvmrc
|
data/{LICENSE.txt → LICENSE}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
|
-
|
1
|
+
MIT License
|
2
2
|
|
3
|
-
Copyright (c)
|
3
|
+
Copyright (c) 2017 SendGrid
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
9
|
copies of the Software, and to permit persons to whom the Software is
|
10
10
|
furnished to do so, subject to the following conditions:
|
11
11
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
14
|
|
15
15
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
17
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/gridium.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = %q{This Gem is used to make building Selenium Tests without Capybara Easier.}
|
13
13
|
spec.description = %q{Gridium makes integrating ruby and Selenium a breeze. This is not for novice automation engineers. Novices should checkout Capybara. However, if you're comfortable with Selenium, and have used Capybara but find it not working well give Gridium a shot.}
|
14
|
-
spec.homepage = "http://github.com/
|
14
|
+
spec.homepage = "http://github.com/sendgrid/gridium"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
data/lib/element.rb
CHANGED
@@ -19,7 +19,7 @@ class Element
|
|
19
19
|
@element = nil
|
20
20
|
|
21
21
|
#how long to wait between clearing an input and sending keys to it
|
22
|
-
@text_padding_time = 0.
|
22
|
+
@text_padding_time = 0.15
|
23
23
|
end
|
24
24
|
|
25
25
|
def to_s
|
@@ -153,7 +153,7 @@ class Element
|
|
153
153
|
append_keys *args
|
154
154
|
else
|
155
155
|
_stomp_input_text *args
|
156
|
-
field_empty_afterward?
|
156
|
+
field_empty_afterward? *args
|
157
157
|
end
|
158
158
|
end
|
159
159
|
alias_method :text=, :send_keys
|
@@ -365,10 +365,11 @@ class Element
|
|
365
365
|
#
|
366
366
|
|
367
367
|
def field_empty_afterward?(*args)
|
368
|
+
Log.debug("Checking the field after sending #{args}, to see if it's empty")
|
368
369
|
check_again = (not args.empty? and no_symbols? *args)
|
369
370
|
field_is_empty_but_should_not_be = (check_again and field_empty?)
|
370
371
|
if field_is_empty_but_should_not_be
|
371
|
-
raise "Browser Error: tried to input #{args} but found an empty string afterward: #{
|
372
|
+
raise "Browser Error: tried to input #{args} but found an empty string afterward: #{value}"
|
372
373
|
end
|
373
374
|
end
|
374
375
|
|
data/lib/gridium/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gridium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Urban
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -140,11 +140,10 @@ extra_rdoc_files: []
|
|
140
140
|
files:
|
141
141
|
- ".gitignore"
|
142
142
|
- ".rspec"
|
143
|
-
- ".travis.yml"
|
144
143
|
- CODE_OF_CONDUCT.md
|
145
144
|
- Dockerfile
|
146
145
|
- Gemfile
|
147
|
-
- LICENSE
|
146
|
+
- LICENSE
|
148
147
|
- README.md
|
149
148
|
- Rakefile
|
150
149
|
- bin/console
|
@@ -165,7 +164,7 @@ files:
|
|
165
164
|
- lib/s3.rb
|
166
165
|
- lib/spec_data.rb
|
167
166
|
- lib/testrail.rb
|
168
|
-
homepage: http://github.com/
|
167
|
+
homepage: http://github.com/sendgrid/gridium
|
169
168
|
licenses:
|
170
169
|
- MIT
|
171
170
|
metadata:
|
data/.travis.yml
DELETED