amazon_auth 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/amazon_auth/extensions/session_extension.rb +2 -2
- data/lib/amazon_auth/version.rb +1 -1
- 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: ea1813a746339a62a99590ceb61c86c4e26a50b1
|
4
|
+
data.tar.gz: 71a1511fe0582cf36b1a3226a6efca496cdaf755
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed72f566bc716cc31fccbae412889faa255fb1cdb93247d3328ecd5cd2d21b0a94d6d0ce0f1f9d44fabe87dfc90dd765b6d85324c83f5b4f03034478f1943a29
|
7
|
+
data.tar.gz: 651537cd232764dbfe1fe6f2eab87197e4f55b9cfea98ad3b022be0452ddf8005f91e6eb8f622930406e96100d8c51888eedc556cd4ae9d41b313dc0d7e62185
|
@@ -12,7 +12,7 @@ module AmazonAuth
|
|
12
12
|
|
13
13
|
def wait_for_selector(selector, options = {})
|
14
14
|
options.fetch(:wait_time, 3).times do
|
15
|
-
if session.first(selector)
|
15
|
+
if session.first(selector, minimum: 0)
|
16
16
|
break
|
17
17
|
else
|
18
18
|
sleep(1)
|
@@ -56,7 +56,7 @@ module AmazonAuth
|
|
56
56
|
log "signInSubmit button not found in this page"
|
57
57
|
return false
|
58
58
|
end
|
59
|
-
session.fill_in 'ap_email', with: login if session.first('#ap_email') && session.first('#ap_email').value.blank?
|
59
|
+
session.fill_in 'ap_email', with: login if session.first('#ap_email', minimum: 0) && session.first('#ap_email').value.blank?
|
60
60
|
session.fill_in 'ap_password', with: password
|
61
61
|
session.first('#signInSubmit').click
|
62
62
|
log "Clicked signInSubmit"
|
data/lib/amazon_auth/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amazon_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuho Yamaguchi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
197
|
version: '0'
|
198
198
|
requirements: []
|
199
199
|
rubyforge_project:
|
200
|
-
rubygems_version: 2.6.
|
200
|
+
rubygems_version: 2.6.8
|
201
201
|
signing_key:
|
202
202
|
specification_version: 4
|
203
203
|
summary: Login amazon.
|