capybara-mechanize 1.9.0 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capybara/mechanize/node.rb +8 -2
- data/lib/capybara/mechanize/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91311ec7ef5ab26f9d2ba0034417b65db6421f5a
|
4
|
+
data.tar.gz: 9e28f01f78b708523ed166734248d2fcadb7dc8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fa75aa260c0d2908bc6919c65c38beabce4da86ef06a7679d2ac5992c5b8d0c6e994046a9a190fec6361960ca10b6a9ff91a912aece1178a469068479009662
|
7
|
+
data.tar.gz: b942267ca1af811b1883c1b3559d8af06dab78965eeebbf7fb486b04bb7f281c6cfb96b7440b265a855dfcdad1013f4e2a909d022faa01649de863c6d2a70e5c
|
@@ -1,8 +1,14 @@
|
|
1
1
|
class Capybara::Mechanize::Node < Capybara::RackTest::Node
|
2
|
-
def click
|
2
|
+
def click(keys = [], offset = {})
|
3
|
+
raise ArgumentError, "The mechanize driver does not support click options" unless keys.empty? && offset.empty?
|
4
|
+
|
3
5
|
if tag_name == 'a' or tag_name == 'label' or
|
4
6
|
(tag_name == 'input' and %w(checkbox radio).include?(type))
|
5
|
-
|
7
|
+
if Capybara::VERSION > '3.0.0'
|
8
|
+
super
|
9
|
+
else
|
10
|
+
super()
|
11
|
+
end
|
6
12
|
elsif (tag_name == 'input' and %w(submit image).include?(type)) or
|
7
13
|
((tag_name == 'button') and type.nil? or type == "submit")
|
8
14
|
associated_form = form
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara-mechanize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeroen van Dijk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mechanize
|
@@ -47,7 +47,7 @@ dependencies:
|
|
47
47
|
version: 2.4.4
|
48
48
|
- - "<"
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: '
|
50
|
+
version: '4'
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -57,7 +57,7 @@ dependencies:
|
|
57
57
|
version: 2.4.4
|
58
58
|
- - "<"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '4'
|
61
61
|
description: RackTest driver for Capybara, but with remote request support thanks
|
62
62
|
to mechanize
|
63
63
|
email: jeroen@jeevidee.nl
|